+ Reply to Thread
Results 1 to 4 of 4

Return a certain answer depending on various criteria.

  1. #1
    Registered User
    Join Date
    06-09-2017
    Location
    Crowthorne
    MS-Off Ver
    2010
    Posts
    7

    Return a certain answer depending on various criteria.

    Hello All,
    I have 4 different account codes and I need to return a certain answer for each depending on what number they start with. The numbers are all 6 digits, the ones that start with 6 or 7 need to return CoS and the ones that start with 8 or 9 need to return OH. Please can someone give me the best formula to use.
    Thank you

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Return a certain answer depending on various criteria.

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-09-2017
    Location
    Crowthorne
    MS-Off Ver
    2010
    Posts
    7

    Re: Return a certain answer depending on various criteria.

    PERFECT. Thank you

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,798

    Re: Return a certain answer depending on various criteria.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. excel formulas to return the most common value depending on a criteria
    By Carmen Stan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-28-2021, 11:38 AM
  2. Return answer based on selected criteria
    By heyumf in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-09-2020, 11:11 PM
  3. [SOLVED] Formula to return different text depending on criteria met
    By elleb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2015, 08:42 PM
  4. [SOLVED] IF formula variables to return more than one answer depending on another cell input
    By teenyjem in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-03-2012, 04:22 PM
  5. Run Macro depending Upon Answer.
    By Craig2097 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2010, 11:27 AM
  6. two criteria - multipule matches that are the same - 1 answer to be return
    By deaexcelpadawan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2008, 10:02 AM
  7. Lookup Multiple Criteria return One answer
    By cbanks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2006, 04:10 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