+ Reply to Thread
Results 1 to 11 of 11

Multiple results in one cell

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Cool Multiple results in one cell

    I need to have one cell that will display multiple results when data is entered.
    EX: =IF(A33="gts-320",4.8,0)
    I need to add several more to this cell. =IF(A33="gts-320",4.8,0)=IF(A33="gts-520",4.8,0) and so on. The single command works but when I add the next one it will not work.
    I am very new to this. Any help would be great. I have 4 total i need this cell to work with.
    JC
    Last edited by Lildumy; 10-19-2011 at 05:13 PM.

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Multiple results in one cell

    =
    Please Login or Register  to view this content.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple results in one cell

    Almost... one small tweak:

    =IF(OR(A33={"gts-320","gts-520"}),4.8,0)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Multiple results in one cell

    Oops - you're right! Thanks!

  5. #5
    Registered User
    Join Date
    10-19-2011
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multiple results in one cell

    I made a typo on this =IF(A33="gts-320",4.8,0)=IF(A33="gts-520",5.2,0) I copied the code and didn't change the values on the second line. Basically I need this to give me different results when I type in gts-320 it should be 4.8, gts-520 should be5.2, gts-710 should be 5.6. sorry its confusing.

  6. #6
    Registered User
    Join Date
    10-19-2011
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multiple results in one cell

    =IF(A33={"gts-320","gts-520,"},4.8,5.2),IF(A33={"gts-710","gts-910,"},5.6,8)
    Something like this is what I need to do. Wont work but I'm still trying

  7. #7
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Multiple results in one cell

    Please Login or Register  to view this content.
    This should give you what you want. If A33 contains anything other than the gts values you were testing for, the function will return Val not found. For gts-320 if resturns 4.8, for gts-520, 5.2, for gts-710, 5.6.

  8. #8
    Registered User
    Join Date
    10-19-2011
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multiple results in one cell

    =IF(A33="gts-320",4.8,IF(A33="gts-520",5.2,IF(A33="gts-710",5.6,IF(A33="gts-910",8,"Val not found"))))
    This is how I modified it to add 1 more function.Viola....it works!!!

    Thank you, thank you, Thank you
    JC

  9. #9
    Registered User
    Join Date
    09-10-2011
    Location
    TRICHY INDIA
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Multiple results in one cell

    Prepare a table say in E and F coloumn.Say gts-320,gts-520 in E column and the corresponding
    value in F column. And use the function =VLOOKUP(A33,E:F,2,0). you will get the desired result
    MN

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple results in one cell

    You should consider creating a lookup table to make editing these values easy. Read up on the VLOOKUP() function.

  11. #11
    Registered User
    Join Date
    09-10-2011
    Location
    TRICHY INDIA
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Multiple results in one cell

    IF limited to only 7 ,but VLOOKUP you can add as you like.I thought Lildumy having more than 7 MN

+ 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