+ Reply to Thread
Results 1 to 4 of 4

How to create a formula but only if it doesnt match any entries in another column

  1. #1
    Registered User
    Join Date
    07-10-2020
    Location
    London
    MS-Off Ver
    office 365
    Posts
    4

    How to create a formula but only if it doesnt match any entries in another column

    Hi All,

    I have large spreadsheet with many formulas. but now I want to update the sheet so some of those formulas will only be calculated if the any of the entries from a column in another tab are not matched.

    This is the formula I use (apologies, I'm a novice so there is probably a better way).

    =IF(OR(F2="Alan",F2="Amy",F2="Bob"),"",IF(AND(ISNUMBER(K2),ISNUMBER(X2)),K2*0.1207-X2,IF(AND(ISNUMBER(K2),X2=""),K2*0.1207,IF(AND(K2="",ISNUMBER(X2)),-X2,IF(AND(K2="",X2=""),"")))))

    so this checks is cells are numbers and and names are not Amy, Alan or Ben

    sample data
    1.png

    But the more names I need to add the longer the formula gets.
    Is there a simpler way to do this excluding names in a column on another tab?

    thank you
    Attached Files Attached Files
    Last edited by kds51h; 07-10-2020 at 06:44 AM.

  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. 2511 (Windows 11 Home 24H2 64-bit)
    Posts
    92,898

    Re: How to create a formula but only if it doesnt match any entries in another column

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Volunteer organiser & photographer with the Sutton Hoo Ship's Company: https://saxonship.org/
    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
    07-10-2020
    Location
    London
    MS-Off Ver
    office 365
    Posts
    4

    Re: How to create a formula but only if it doesnt match any entries in another column

    Thank you, I'll anonymise it and attach it very soon.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,678

    Re: How to create a formula but only if it doesnt match any entries in another column

    Try to create the list of excluding names in other column, i.e, AR
    Then in AP2:

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Quang PT

+ 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] Pulling the data from one column if the entries in a different column match the definition
    By virtuosok in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-08-2018, 10:23 AM
  2. [SOLVED] Problem with an easy formula VLOOKUP doesnt match
    By XLalbania in forum Excel General
    Replies: 11
    Last Post: 03-05-2017, 06:09 PM
  3. How do I create a formula to look up, match, then return a number from another column
    By RobinOfLocksley in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-26-2017, 11:10 AM
  4. [SOLVED] How to get a VLOOKUP+MATCH formula to return 0 and not N/A when MATCH doesnt work
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2016, 09:40 AM
  5. Replies: 3
    Last Post: 02-25-2015, 06:43 PM
  6. Replies: 13
    Last Post: 05-11-2014, 06:51 PM
  7. [SOLVED] any Ideas Why this INDEX MATCH formula doesnt work ?
    By ecelaras in forum Excel General
    Replies: 13
    Last Post: 11-30-2012, 06:55 AM

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