# Displaying Specific Text in Cell Based on Text in Another

1. ## 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. ## 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);_(\$* "-"??_);_(@_)

3. ## Re: Displaying Specific Text in Cell Based on Text in Another

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

Format as currency.

4. ## Re: Displaying Specific Text in Cell Based on Text in Another

That worked perfectly. Thank you very much!

5. ## Re: Displaying Specific Text in Cell Based on Text in Another

Originally Posted by wowcrofty
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 **

6. ## 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.

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