+ Reply to Thread
Results 1 to 7 of 7

Return a number based on text

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    PA
    MS-Off Ver
    2016
    Posts
    12

    Return a number based on text

    All, I have a list of prices (quotes for work) and want to automatically add that price to a budget sheet if a cell adjacent has text. The cell with text would depend on whatever the user chose to select as the quote. The attachment has two options to show what i'd like to be able to happen. Picture as well. I've searched the internet but may not be searching for the right thing. All help is appreciated!

    Capture.PNG
    Attached Files Attached Files

  2. #2
    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,960

    Re: Return a number based on text

    Are you still using Excel 2007?
    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.

  3. #3
    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,960

    Re: Return a number based on text

    This should work:

    =INDEX($A$2:$A$6,MATCH("*",$B$2:$B$6,0))

  4. #4
    Registered User
    Join Date
    07-01-2014
    Location
    PA
    MS-Off Ver
    2016
    Posts
    12

    Re: Return a number based on text

    Quote Originally Posted by AliGW View Post
    Are you still using Excel 2007?
    I am not. Sorry, I updated my profile to 2016

  5. #5
    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,960

    Re: Return a number based on text

    Thanks. Please see post #3.

  6. #6
    Registered User
    Join Date
    07-01-2014
    Location
    PA
    MS-Off Ver
    2016
    Posts
    12

    Re: Return a number based on text

    Quote Originally Posted by AliGW View Post
    This should work:

    =INDEX($A$2:$A$6,MATCH("*",$B$2:$B$6,0))
    That was incredibly simple. I had tried vlookup but that is much easier to understand, thanks!

    Is * a generic text character when searching for something

  7. #7
    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,960

    Re: Return a number based on text

    Yes - it's what we call a wildcard character.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Return Number Value based on text in a different cell
    By coreybops in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2022, 01:32 AM
  2. Return paragraph number based on found text
    By scienceguyroy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2020, 01:36 PM
  3. how to structure formula to return an amt based on number and text
    By Iappreciate in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-24-2016, 09:51 AM
  4. Trying to Return a Number in a Cell based on Text
    By jslavinsky in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-01-2014, 11:23 PM
  5. Trying to Return a Number in a Cell based on Text
    By jslavinsky in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-01-2014, 03:17 PM
  6. Replies: 9
    Last Post: 03-06-2014, 04:48 PM
  7. [SOLVED] IF function to return a number value based on various text options
    By metrohike in forum Excel Formulas & Functions
    Replies: 31
    Last Post: 02-28-2014, 04:47 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