+ Reply to Thread
Results 1 to 9 of 9

Too Many If's - Help to simplify

  1. #1
    Registered User
    Join Date
    05-01-2009
    Location
    North East (Durham)
    MS-Off Ver
    Excel 2003,7 and 10
    Posts
    63

    Too Many If's - Help to simplify

    This is what I am trying to do
    if F1="Yes", iF K1 ="Q1" and IF B1 is blank then "yes", if K1="Q2" and IF C2 is blank then "Yes", If K1="Q3" and IF D2 is blank then "Yes", If K1="Q4" and IF E2 is blank then "Yes"

    Basically colomns Q1,Q2,Q3,Q4, LIVE and Pending
    Depending on a value in K1 (which is a drop down selector consisting of Q1-Q4) I want it to check that its live "Yes" in F1 then look for the the correct period and tell me if any data is missing - if it is then give me a Yes.

    Is there a simpiler way then using all the IF's

    Thanks
    Last edited by batman1056; 12-07-2010 at 12:11 PM.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Too Many If's - Help to simplify

    Hi there Batman,,,, na nana naananana bang pow smash crash!

    I tried to follow your post but got lost half way through.

    May be a good idea to post a sample of your workbook describing what your desired output is.

    Would make it easier to follow. for those with half a brain like me!
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Too Many If's - Help to simplify

    I *think* I understand what you're looking for...
    Try this formula:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

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

    Re: Too Many If's - Help to simplify

    Perhaps?

    =IF(F1="Yes",IF(OR(AND(K1 ="Q1",B1=""),AND(K1="Q2",C2=""),AND(K1="Q3",D2=""),AND(K1="Q4",E2="")),"Yes",""),"")
    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.

  5. #5
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Too Many If's - Help to simplify

    Wow Ron - nicely followed! I took a wrong turning somewhere!!

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Too Many If's - Help to simplify

    Try this,

    =IF((F1="Yes")*(CHOOSE(MID(K1&"00",2,1)+1,"No",B1,C2,D2,E2)=""),"Yes","No")

    or

    =REPT("Yes",(F1="Yes")*(AND(K1="Q1",B1="")+AND(K1="Q2",C2="")+AND(K1="Q3",D2="")+AND(K1="Q4",E2="")))

    Regards
    Last edited by sailepaty; 12-07-2010 at 11:58 AM.

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Too Many If's - Help to simplify

    If K1 will always be one of these: Q1, Q2, Q3, Q4
    Then this may be a possibility:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-01-2009
    Location
    North East (Durham)
    MS-Off Ver
    Excel 2003,7 and 10
    Posts
    63

    Re: Too Many If's - Help to simplify

    I went with this in the end

    =IF(INDEX(ragy,ROW(B3)-1,MATCH($K$1,qtrs,0))="","Pending","Other")

    Many thanks for the other ideas - I just added the check at the front of the above to see if its Live and its works a treat. will play about with your sugestions thanks

    Uploaded the solution so people can see what I was trying to do

    Edd
    Attached Files Attached Files
    Last edited by batman1056; 12-07-2010 at 12:39 PM.

  9. #9
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Too Many If's - Help to simplify

    I'm glad we could help...Thanks for posting your formula!

+ 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