+ Reply to Thread
Results 1 to 12 of 12

Excel 2007 : Multiple outcomes with text

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    9

    Multiple outcomes with text

    First of all, my native language isn't English. I apologize for any spelling errors.

    Here is my problem.
    I have 2 columns. 1 with points (0-1500) the other should contain certain ranks according to the points.
    There are 5 ranks
    0-99
    100-499
    500-999
    1000-1499
    1500+

    I can't seem to find a formula allowing me to add 5 different TEXT in 1 formula.
    Can someone help?

    + How can I set the a spreadsheet in a way people only see the info (so not the menu, or the tabs or different sheets.
    Example: (From some internet game)
    https://spreadsheets.google.com/pub?...36&output=html


    Thanks in advance!
    Last edited by Nicocast; 09-19-2011 at 11:12 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Help needed

    Try: =LOOKUP(A1,{0,100,500,1000,1500},{"A","B","C","D","E"})

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    09-19-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Help needed

    Quote Originally Posted by Domski View Post
    Try: =LOOKUP(A1,{0,100,500,1000,1500},{"A","B","C","D","E"})

    Dom
    My friend got it working in the meantime, he used something with a lot of "ifs" :p
    Thanks for the reply.

    How can I do this though? He doesn't know it either?

    How can I set the a spreadsheet in a way people only see the info (so not the menu, or the tabs or different sheets.
    Example: (From some internet game)
    https://spreadsheets.google.com/pub?...36&output=html

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Help needed

    Whilst you can do it using IF formula I think LOOKUP is more flexible.

    I should have asked to you to revise your thread title in line with the forum rules. Can you please do so and I'll have a look at the other.

    I've never played much with Google Docs so not sure I can be of much help. As it's a different problem you should really start another thread on the subject.

    Dom

  5. #5
    Registered User
    Join Date
    09-19-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Help needed

    Quote Originally Posted by Domski View Post
    Whilst you can do it using IF formula I think LOOKUP is more flexible.

    I should have asked to you to revise your thread title in line with the forum rules. Can you please do so and I'll have a look at the other.

    I've never played much with Google Docs so not sure I can be of much help. As it's a different problem you should really start another thread on the subject.

    Dom
    I changed the title
    If I used LOOKUP, it won't register numbers between the 0-500 or 500-1000 etc right?
    Last edited by Nicocast; 09-19-2011 at 10:15 AM.

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Multiple outcomes with text

    Using my example values 0-99 will return A, 100-499 will return B, 500-999 will return C etc.

    Was this what you were trying to achieve?

    Dom

  7. #7
    Registered User
    Join Date
    09-19-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Multiple outcomes with text

    Quote Originally Posted by Domski View Post
    Using my example values 0-99 will return A, 100-499 will return B, 500-999 will return C etc.

    Was this what you were trying to achieve?

    Dom
    Yes I was. Sorry, I didn't understand it correctly

  8. #8
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Multiple outcomes with text

    The lookup function basically creates a mini-array with different breakpoints. So in the equation that Dom posted for you, he created breakpoints at 100, 500, 1000, and 1500. So once the number surpasses that breakpoint, it'll use the other section of the array, the A, B, C, D, E.

    Think of it kind of like a Vlookup, but instead of referencing an array, you're building your own. It's pretty flexible.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  9. #9
    Registered User
    Join Date
    09-19-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Multiple outcomes with text

    Quote Originally Posted by Miraun View Post
    The lookup function basically creates a mini-array with different breakpoints. So in the equation that Dom posted for you, he created breakpoints at 100, 500, 1000, and 1500. So once the number surpasses that breakpoint, it'll use the other section of the array, the A, B, C, D, E.

    Think of it kind of like a Vlookup, but instead of referencing an array, you're building your own. It's pretty flexible.
    Got it working
    Thanks both!

  10. #10
    Registered User
    Join Date
    09-19-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Multiple outcomes with text

    Oke, I loaded it up to my google docs and the formula LOOKUP doesn't work anymore

    error: Unknown function name LOOKUP

  11. #11
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Multiple outcomes with text

    Sorry, as I said no clue about Google Docs.

    Dom

  12. #12
    Registered User
    Join Date
    09-19-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Multiple outcomes with text

    No problem...

    So sad it doesn't work

+ 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