+ Reply to Thread
Results 1 to 7 of 7

adding label with result

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    adding label with result

    I am new at excel and what I want to do is to add a "*","**","***" to a result in a cell depending on a choice from another cell. This a frame sheet for a car that I have broken the car into 3 zones and depending on the zone picked I just want to add the star to that result so it represents the area damaged. I hope that makes sense.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: adding label with result

    Hi Johnmk, welcome to the forum.

    Could you perhaps provide a sample workbook showing your layout and the results you're expecting. While we can make guesses as to what you need, it will probably be beneficial to see it in action to get it right more quickly.

    Thanks!

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: adding label with result

    Ok I will try to do my best, =)

    cell A1 is a drop down box of three choices "zone 1", "zone 2", "zone 3". then in the box in question here is the formula

    =IF(C20>=16,2.5,IF(C20>=11,1.5,IF(C20>=8,1,IF(C20>=4,0.5,IF(C20>0,0.3,0))))*M25)

    what I want to do is for what ever the value is say 1.0 that is in the cell I want depend on what was chosen in the dropdown box of either "zone 1" which would yeild 1.0* or "zone 2" which would show 1.0** or say "zone 3" which would show 1.0*** Does that make sense?

  4. #4
    Registered User
    Join Date
    01-28-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: adding label with result

    I am just wanting to add the stars at the end of the result depending on the zone picked

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: adding label with result

    Using LOOKUP formulas rather than multiple IF statements, you could try:

    =IF(C20>=16,2.5,LOOKUP(C20,{0,0.001,4,8,11},{0,0.3,0.5,1,1.5})*M25)&LOOKUP(A1,{"Zone 1","Zone 2","Zone 3"},{"*","**","***"})

    Using your original IF(IF(IF structure, it would be:

    =IF(C20>=16,2.5,IF(C20>=11,1.5,IF(C20>=8,1,IF(C20>=4,0.5,IF(C20>0,0.3,0))))*M25)&LOOKUP(A1,{"Zone 1","Zone 2","Zone 3"},{"*","**","***"})

    Note, though, that by concatenating the asterisks to the end, the cell is no longer a numeric value. It becomes text.

  6. #6
    Registered User
    Join Date
    01-28-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: adding label with result

    Sweet! Thanks for you help it worked prefect.

  7. #7
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: adding label with result

    Glad I could help!

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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