+ Reply to Thread
Results 1 to 12 of 12

combining various IF statements

  1. #1
    Forum Contributor
    Join Date
    08-06-2009
    Location
    Belfast
    MS-Off Ver
    Excel 2003
    Posts
    107

    combining various IF statements

    A B C D E F G H
    N/A N/A 28-Aug-09 ? ? 200 03-Jul-09 200



    =IF(A2=N/A, Lookup - B2

    =IF(B2=N/A, Lookup - G2

    D2=IF(G2>=NOW()-8,"Default","PAID")

    =IF(D2=PAID then LOOKUP H2

    If H2<F2 then E2 reads UNDER

    =IF(H2>=F2,"UNDER","")

    i hope you can understand what it is im trying to say -

    your help would be much appreciated


    Thanx

    Lorna

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: combining various IF statements

    Kind of confusing, but a guess may be:

    =IF(AND(A2="N/A",B2="N/A",D2="PAID",H2>=F2),"Under","")

    So all have to be true to get "Under" else if any are false you get a blank.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    08-06-2009
    Location
    Belfast
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: combining various IF statements

    Quote Originally Posted by NBVC View Post
    Kind of confusing, but a guess may be:

    =IF(AND(A2="N/A",B2="N/A",D2="PAID",H2>=F2),"Under","")

    So all have to be true to get "Under" else if any are false you get a blank.

    No it just brings up #N/A

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,032

    Re: combining various IF statements

    Uplaod an example.

    Or try to replace "N/A" with NA()
    Never use Merged Cells in Excel

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: combining various IF statements

    is N/A in A and b result of formula (i.e. #N/A)?

  6. #6
    Forum Contributor
    Join Date
    08-06-2009
    Location
    Belfast
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: combining various IF statements

    sorry not too sure what you mean.

    N/a in both A and B are from previous Vlookups if thats what your asking??

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: combining various IF statements

    Does this work?

    =IF(AND(ISNA(A2),ISNA(B2),D2="PAID",H2>=F2),"Under","")

  8. #8
    Forum Contributor
    Join Date
    08-06-2009
    Location
    Belfast
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: combining various IF statements

    Quote Originally Posted by NBVC View Post
    Does this work?

    =IF(AND(ISNA(A2),ISNA(B2),D2="PAID",H2>=F2),"Under","")

    the above seems to be giving me the answer that i want but

    if A2 is not N/A the string should not work? am i right?

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,032

    Re: combining various IF statements

    It's unclear what your others results might be.
    If you get some other results then induce them in your example.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: combining various IF statements

    Correct.. you should get a blank...

  11. #11
    Forum Contributor
    Join Date
    08-06-2009
    Location
    Belfast
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: combining various IF statements

    Right hopefully the below looks better.. i was getting too confused... so i have changed it all

    if B2 read #N/A look at C2
    if C2 reads #N/A look at H2
    if H2 is more than 0 look at L2
    If L2 reads Late Mark K2 as Priority


    ..B...........C.........H........K........L............
    #N/A.....#N/A......100......?........Late .......

    I have completely changed it now

    Thanx for help so far!!

    Lorna

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: combining various IF statements

    IN K2,

    =IF(And(Isna(B2),Isna(C2),H2>0,L2="Late"),"Priority","")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1