+ Reply to Thread
Results 1 to 5 of 5

Nested IF statement validating part 1 but not part 2 of conditional

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    13

    Nested IF statement validating part 1 but not part 2 of conditional

    I'm working on a IF statement that does the follow checks:

    1) Check to see if value exists on VDA Report
    • If FALSE then move onto 2
    • If TRUE then display "Yes" as a result

    2) Check to see if the first letter of the adjacent value in column H is "V"
    • If TRUE then display "Yes" as a result
    • If FALSE then go onto 3

    3) Display blank result

    But whenever it does not find a value at 1), instead of proceeding on to do the check at 2) it jumps all the way to 3). Any reason for this happening? Code below:

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Nested IF statement validating part 1 but not part 2 of conditional

    break the formula down, use 3 spare columns for evaluating what each is doing
    remove the IFERROR too while your doing the tests

    first column - do the vlookup
    second column - do the left,1 = V
    third column - if first and second columns are blank then blank
    not sure you need this third part though, as if second part is not V then it's going to be blank anyway

    once each part is behaving as expected, then put each part back into the single cell formula

  3. #3
    Registered User
    Join Date
    02-15-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Nested IF statement validating part 1 but not part 2 of conditional

    Quote Originally Posted by ThirtyTwo View Post
    break the formula down, use 3 spare columns for evaluating what each is doing
    remove the IFERROR too while your doing the tests

    first column - do the vlookup
    second column - do the left,1 = V
    third column - if first and second columns are blank then blank
    not sure you need this third part though, as if second part is not V then it's going to be blank anyway

    once each part is behaving as expected, then put each part back into the single cell formula
    It all works seperately

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    which both work on their own but put them together and its a no go!

  4. #4
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Nested IF statement validating part 1 but not part 2 of conditional

    hmm

    i'll put these two together, see if it works

    Please Login or Register  to view this content.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested IF statement validating part 1 but not part 2 of conditional

    this bit
    VLOOKUP(CONCATENATE("EMEA\",H:H),'VDA Report'!A:B,1,FALSE)

    CONCATENATE("EMEA\",H:H) you cant concatenate "EMEA\" with a range h:H
    well if you do
    it returns the concatenation of which ever row you put the formula in
    so CONCATENATE("EMEA\",H:H) placed in say a33
    would be the equivalent of
    CONCATENATE("EMEA\",H33)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. count pairs, show 1 for first part, 0 for 2nd part
    By simpson in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-23-2013, 08:21 PM
  2. 2 part piece here. One part counter of up and down, fill in of blank cells.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 10:09 PM
  3. Find Part number through Macro and output to associated part to certain cell
    By boylers75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 04:32 PM
  4. Part Code + part no combination for list box
    By suhas_shah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2006, 07:28 PM
  5. [SOLVED] how do I assign a symbol to the result of a part of a nested IF s.
    By Lee Mitchell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-30-2005, 01:06 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