Consulting

Results 1 to 3 of 3

Thread: Combine "if" formula : help required

  1. #1

    Combine "if" formula : help required

    Hi ,

    I have below IF formulae which works as intended, I need this to be combined so that all three conditions get verfied on single cell reference.

    =IF(P5="Monthly",IF(L5<40909,N5*BF2,(DATEDIF(L5,BE1,"m")*N5)))

    =IF(P5="Qtr-Arr",IF(ROUNDUP(DATEDIF(L5,BE1,"m")/3,0)<=BH2,ROUNDUP((DATEDIF(L5,BE1,"m")/3)*N5,0),ROUNDUP(N2*BH3,0)))

    =IF(P5="Qtr-Adv",IF(ROUNDUP(DATEDIF(L5,BE1,"m")/3,0)<=BI2,ROUNDUP((DATEDIF(L5,BE1,"m")/3)*N5,0),ROUNDUP(N5*BI2,0)))

    Attached is the sample workbook for your reference.
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =IF(P5="Monthly",IF(L5<40909,N5*$BF$2,(DATEDIF(L5,$BE$1,"m")))*N5,
    IF(P5="Qtr-Arr",IF(ROUNDUP(DATEDIF(L5,BE$1,"m")/3,0)<=BH2,ROUNDUP((DATEDIF(L5,BE$1,"m")/3)*N5,0),ROUNDUP(N2*BH$2,0)),
    IF(P5="Qtr-Adv",IF(ROUNDUP(DATEDIF(L5,BE$1,"m")/3,0)<=BI1,ROUNDUP((DATEDIF(L5,BE$1,"m")/3)*N5,0),ROUNDUP(N4*BI$2,0)))))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Hi Xld,

    Thank you very much for your help, this working as intended

    Regards,
    Satish Gubbi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •