+ Reply to Thread
Results 1 to 3 of 3

IF Function based on 2 conditions to either Match or replace

  1. #1
    Registered User
    Join Date
    06-28-2017
    Location
    UK
    MS-Off Ver
    2007
    Posts
    37

    IF Function based on 2 conditions to either Match or replace

    Hey guys,

    I would like to compare cell A1 and B1 to see whether they either match or they are false.

    Therefore, =IF(A1=B1, "Match"). But if A1 doesn't equal B1 I would like A3: A9 to be marked as false as well.

    I'm sure this is possible, just a heads up cells A3: A9 will already have existing formulas in them. Therefore, I'm hoping for something that will replace these.

    Thanks, guys.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,006

    Re: IF Function based on 2 conditions to either Match or replace

    You need to tell us what the formulae in A3 to A9 are.

    In essence you will need to add this to each of them:

    =IF(A$1<>B$1,FALSE,your_formula)
    Last edited by AliGW; 08-12-2017 at 11:42 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-28-2017
    Location
    UK
    MS-Off Ver
    2007
    Posts
    37

    Re: IF Function based on 2 conditions to either Match or replace

    Hi Aligw,

    Thanks for your help so far.

    I've just realised that the cells will be going sideways to the right. Therefore, J1: O1 formulas will need to be replaced if A1 doesn't match B1. However, if A1=B1 then I want it to be marked as "Match" and then I want the other formulaes to be untouched. The formula I will be using is below:

    =IF(AND(OR(A1="",A2="",A1=A2),A1&A2<>""),"Match","False")

    Therefore, would your formulae accompany by mine work? Throughout, J1: O1 the forumales will change. Therefore, J1 will equal the above but K1 will equal =IF(AND(OR(B1="",B2="",B1=B2),B1&B2<>""),"Match","False")

    Thanks.
    Last edited by AlexShip; 08-12-2017 at 12:11 PM.

+ 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] INDEX MATCH based on two Field Conditions
    By naveeddil in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 04-08-2016, 01:09 AM
  2. [SOLVED] Replace function with conditions
    By manharji in forum Excel General
    Replies: 2
    Last Post: 02-22-2014, 12:48 AM
  3. [SOLVED] Using the MATCH function to look for multiple conditions
    By bananajelly in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 11:49 PM
  4. [SOLVED] Weekly Sales moved to Master, if match conditions replace existing other wise new line
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2013, 07:18 AM
  5. Find 2 types of value based on 3 match conditions
    By Elza in forum Excel General
    Replies: 9
    Last Post: 11-02-2012, 03:03 PM
  6. replace #N/A in match function
    By mok0208 in forum Excel General
    Replies: 9
    Last Post: 08-03-2007, 05:03 AM
  7. Replace #N/A using Index Match function
    By karstens in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2006, 03:04 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