+ Reply to Thread
Results 1 to 2 of 2

If Statement needs to consider cell above value before processing outcome

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    If Statement needs to consider cell above value before processing outcome

    Good Morning Excel Forum,

    hope all is well.

    I am hoping you can help me with a little scenario i am encountering.

    I have two columns, Column A & Column B as represented below.

    Column A Column B
    12345 12345
    12345 11111
    12345 22222
    12345 33333

    In Column C i have a formula to say =A2=B2 which returns "True" or "False". which returns the following result set ;

    Column A Column B Column C
    12345 12345 TRUE
    12345 11111 FALSE
    12345 22222 FALSE
    12345 33333 FALSE

    Based on this i will then take the appropriate action based off column C and update Column B. However the problem i am encountering is that Column A can be associated to multiple codes in Column B. What i would like to say is, if A2 = B2, and A3 has the same value as A2, then C3 should = true.



    Expected Out come

    Column A Column B Column C
    12345 12345 TRUE
    12345 11111 TRUE
    12345 22222 TRUE
    12345 33333 TRUE

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: If Statement needs to consider cell above value before processing outcome

    Keep the formula in C2, but use this in C3:

    =IF(C2,IF(A3=A2,TRUE,A3=B3),A3=B3)

    Then copy down.

    Hope this helps.

    Pete

+ 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. [SOLVED] if statement third outcome
    By steddas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2018, 09:57 AM
  2. [SOLVED] Multiple outcome if and statement
    By retroboy17 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-08-2014, 02:09 AM
  3. If statement outcome problem
    By devilchild99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2013, 09:25 PM
  4. [SOLVED] issue with outcome of if/then statement in VBA
    By Marijke in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2013, 10:18 AM
  5. Incorrect Outcome with Dates and >= statement
    By stuart010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2011, 12:55 PM
  6. If Statement not recognising outcome
    By JoeSharp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2008, 07:18 AM
  7. How to calculate a sum as one outcome of an IF statement
    By barb in NC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2005, 03:06 PM

Tags for this Thread

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