+ Reply to Thread
Results 1 to 6 of 6

Displaying Specific Text in Cell Based on Text in Another

  1. #1
    Registered User
    Join Date
    07-29-2012
    Location
    Greentown, PA
    MS-Off Ver
    Office 2010
    Posts
    2

    Displaying Specific Text in Cell Based on Text in Another

    Hey all,

    I have an interesting scenario which has gotten me completely clueless on how to solve. The Excel sheet I am creating is a form used for customer and event information for my DJ business. A cell (let us say A1 for this example) has one of the following three text strings entered into it: "Basic DJ", "Full DJ", or "Complete DJ". Cell "B1" will in turn display a fixed numeric cost, the value of which is determined by the text that was entered in "A1" ($125, $325, $450). Is it possible to do this? Can it be done in a single formula, or would I have to use several "dummy" cells to hold intermediate values and divide the formula into pieces? Any help on this would be greatly appreciated.

  2. #2
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Displaying Specific Text in Cell Based on Text in Another

    try

    = LOOKUP(A1,{"Basic DJ","Complete DJ","Full DJ"},{125,450,325}) and format cell as _($* #,##0_);_($* (#,##0);_($* "-"??_);_(@_)
    Last edited by Ace_XL; 07-29-2012 at 09:47 AM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Displaying Specific Text in Cell Based on Text in Another

    How about

    =IF(A1<>"",lookup(A1,{"Basic DJ","Complete DJ","Full DJ"},{125,450,325}),"")

    Format as currency.
    Last edited by jason.b75; 07-29-2012 at 09:34 AM.

  4. #4
    Registered User
    Join Date
    07-29-2012
    Location
    Greentown, PA
    MS-Off Ver
    Office 2010
    Posts
    2

    Re: Displaying Specific Text in Cell Based on Text in Another

    That worked perfectly. Thank you very much!

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Displaying Specific Text in Cell Based on Text in Another

    Quote Originally Posted by wowcrofty View Post
    That worked perfectly. Thank you very much!
    You're welcome, not sure which you used but in case you didn't test all 3 strings, the formula in post #2 gives the wrong amount for Complete DJ. ** the formula has been edited, both now give the correct results **

    If you're happy with the solution please mark your thread as solved.
    Last edited by jason.b75; 07-29-2012 at 10:05 AM.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Displaying Specific Text in Cell Based on Text in Another

    @ wowcrofty

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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