+ Reply to Thread
Results 1 to 7 of 7

Help with possible Nested IF?

  1. #1
    Registered User
    Join Date
    03-29-2011
    Location
    Winchester,VA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Help with possible Nested IF?

    Link to Document:

    http://filebox.vt.edu/users/kkhan/Excel/ExcelHelp2.xls
    My current Formula:

    =IF(OR(AND(EXACT(A6,A7),EXACT(B6,B7),EXACT(D6,D7),EXACT(E6,E7),EXACT(F6,F7)),AND(EXACT(A7,A8),EXACT(B7,B8),EXACT(D7,D8),EXACT(E7,E8),EXACT(F7,F8))),G8,0)
    What i want to be able to do is say when the
    #6 rows = #7 rows then use G6
    But when
    #7 rows = the #8 rows then use G8

    As I have it now I can only specify one TRUE which is to use cell G8.

    Thanks!
    Last edited by vertigo44; 03-31-2011 at 08:59 AM.

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

    Re: Help with possible Nested IF?

    Do you mean?

    =IF(G6="",IF(SUMPRODUCT(--(EXACT(A6:F6,A7:F7)))=6,G7,""),"")

    copied down
    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
    Registered User
    Join Date
    03-29-2011
    Location
    Winchester,VA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Help with possible Nested IF?

    Quote Originally Posted by NBVC View Post
    Do you mean?

    =IF(G6="",IF(SUMPRODUCT(--(EXACT(A6:F6,A7:F7)))=6,G7,""),"")

    copied down
    Sorry I should have been more descriptive on what needs to happen. I have updated the link to a new excel sheet that shows what I need to happen in this forumla. I'm almost there its just a matter of conditions such as an OR and another IF I believe.

    Thanks for the attempt though I do appreciate it!

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

    Re: Help with possible Nested IF?

    Does this work then?

    =IF(G2<>"",G2,IF(SUMPRODUCT(--(A1:F1=A2:F2))=COLUMNS(A2:F2),G1,G3))

    I am not sure you need EXACT... exact is case sensitive.

  5. #5
    Registered User
    Join Date
    03-29-2011
    Location
    Winchester,VA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Help with possible Nested IF?

    THAT'S IT!!! AMAZING!

    Thank you!!!

  6. #6
    Registered User
    Join Date
    03-29-2011
    Location
    Winchester,VA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Help with possible Nested IF?

    Quote Originally Posted by NBVC View Post
    Does this work then?

    =IF(G2<>"",G2,IF(SUMPRODUCT(--(A1:F1=A2:F2))=COLUMNS(A2:F2),G1,G3))

    I am not sure you need EXACT... exact is case sensitive.


    What does the -- do after sumproduct?

  7. #7
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Help with possible Nested IF?

    Hi,
    What does the -- do after sumproduct?
    SUMPRODUCT() works with numbers, so the -- is used to coerce the boolean TRUE and FALSE values to 1s and 0s.

    See here:
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html
    Hope that helps,

    Colin

    RAD Excel Blog

+ 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