+ Reply to Thread
Results 1 to 6 of 6

IF Function - relating adjacent cell check

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    IF Function - relating adjacent cell check

    Hi guys,

    I have 64 boxes from cell A2 downwards which say: 'S1' in all of the cells. In the 64 boxes from B2 downwards, I see a mixture of content including S1.

    I want to write an IF statement saying if B2 has S1 (like A2), return: No change. If B2 has anything other than S1, return: Change

    Can anyone help me to write this statement?

    Thank you
    Thanks,

    R.



  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: IF Function - relating adjacent cell check

    I think
    =if(a2=b2,"No Change","Change")
    if it is not work, please attach a sample excel file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: IF Function - relating adjacent cell check

    I just figured it out!
    =IF(B2 = A2, "No Change", "Change")

    Yes you're one is acceptable too.

    Thank you!

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: IF Function - relating adjacent cell check

    In C2:
    =IF(B2="S1", "No Change", "Change") copied down the column.
    assuming A column has all S1.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,189

    Re: IF Function - relating adjacent cell check

    Try

    =IF(AND(A2="S1",A2=B2),"No change","Change")

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: IF Function - relating adjacent cell check

    based on the question asked I would agree that John's is the only one that does what the OP asked (however it may be that the OP wasnt clear enough).
    If someone has helped you then please add to their Reputation

+ 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] Check Background color of cell and write appropriate value in adjacent cell
    By AnirudhC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2017, 04:39 PM
  2. Check contents of cell against an adjacent cell and return comparison?
    By Nate Westcott in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2015, 01:05 PM
  3. Macro to check adjacent blank cell
    By KUKKU1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2014, 08:39 AM
  4. Replies: 3
    Last Post: 06-19-2014, 06:07 PM
  5. Need Adjacent Cell to Change Colors When a Check Box is Checked
    By Switchedit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2014, 09:40 PM
  6. Replies: 1
    Last Post: 04-11-2013, 01:49 PM
  7. Need formula to check adjacent cell value, and report.
    By theRDstore in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-05-2009, 01:52 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