+ Reply to Thread
Results 1 to 5 of 5

Returning values based on another cell

  1. #1
    Registered User
    Join Date
    06-10-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 97
    Posts
    26

    Returning values based on another cell

    I think this has a simple solution, but can't seem to find it. I want to return a specific number based on what letter is in another cell. For example if A1 is "A", "B", "C", or "D", I want to return 0, 9, 18, and 27 respectively. I know this can be done with a nested IF function or a lookup table, but was thinking there was a simpler way. Using Excel 97. Thanks.
    Last edited by Russet; 10-24-2015 at 11:02 AM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Returning values based on another cell

    Try

    =(MATCH(A1,{"A","B","C","D"},0)-1)*9

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Returning values based on another cell

    This isn't a lookup table per se and I can't say it will work in excel 97 but this works with my version... =LOOKUP(A1,{"A","B","C","D"},{0,9,18,27})
    though for anything beyond D (like E or F for example) it will also return 27.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    06-10-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 97
    Posts
    26

    Re: Returning values based on another cell

    Thank you so much for the replies! The formulas worked perfectly and I can use both of them.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Returning values based on another cell

    You're welcome

+ 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. Returning Value based on specific values in a cell range
    By mgallacher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2015, 11:30 AM
  2. Replies: 9
    Last Post: 09-07-2014, 05:42 PM
  3. [SOLVED] Returning cell values in a comment based on values in another workbook
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-10-2014, 04:13 AM
  4. Replies: 3
    Last Post: 06-10-2013, 07:59 PM
  5. Replies: 4
    Last Post: 05-29-2013, 04:18 AM
  6. Returning a value to a single cell based on multiple values elsewhere.
    By archieross in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2012, 07:35 PM
  7. Replies: 2
    Last Post: 02-01-2012, 06:28 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