+ Reply to Thread
Results 1 to 5 of 5

Nested IF statement troubles - can't get the final value to appear

  1. #1
    Registered User
    Join Date
    08-18-2015
    Location
    Rugby
    MS-Off Ver
    14.5.3
    Posts
    2

    Nested IF statement troubles - can't get the final value to appear

    Hi,

    I'm really struggling to get a formula working and I've been searching for ages without finding an answer!

    Essentially I have a column of values, and each one will correspond to either a value in column C, D or E. I want a formula that says if the cell matches a value in column C print "H1", if it matches column D print "H2" or if it matches column E print "H3".

    Can someone work out why the 'false' value of the nested IF statement won't work on this formula?
    =IF(G4=C:C,"H1",IF(MATCH(G4,D:D,0),"H2","H3"))

    Many thanks!!!!

    Andy

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Nested IF statement troubles - can't get the final value to appear

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Nested IF statement troubles - can't get the final value to appear

    Maybe,

    =IF(COUNTIF(C:C,G4)>0,"H1",IF(COUNTIF(D:D,G4)>0,"H2",IF(COUNTIF(E:E,G4)>0,"H3","")))

  4. #4
    Registered User
    Join Date
    12-12-2014
    Location
    PL
    MS-Off Ver
    2010
    Posts
    55

    Re: Nested IF statement troubles - can't get the final value to appear

    This should also do the trick:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-18-2015
    Location
    Rugby
    MS-Off Ver
    14.5.3
    Posts
    2

    Re: Nested IF statement troubles - can't get the final value to appear

    Thanks so much - can't believe how quick you all helped out! Cheers - problem is now solved. I didn't even think of using countif, and the isnumber function was obviously where I was going wrong.

    @oeldere - thanks for the tip, I will do that moving forward

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  2. INDEX/MATCH with nested IF/AND troubles.
    By Monsta4000 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2015, 09:25 AM
  3. Creating a Final Estimate Form and a Final Materials List based on Worksheet Results
    By Crunched For Time in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-20-2013, 09:58 PM
  4. replacing lowest test grade with final if final is higher formula help
    By colbyclay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-16-2012, 02:48 AM
  5. If Statement Troubles
    By snapa in forum Excel General
    Replies: 0
    Last Post: 12-07-2009, 12:11 PM
  6. Countif/ nested if troubles
    By creed1101 in forum Excel General
    Replies: 1
    Last Post: 09-07-2009, 06:40 AM
  7. Replies: 6
    Last Post: 01-14-2009, 06:59 PM

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