+ Reply to Thread
Results 1 to 11 of 11

Formula from DropDown Lists?

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Formula from DropDown Lists?

    I am trying to come up with a formula that will take the values chosen on 2 drop down list to populate a chosen amount on another cell.
    Example. Cell C4 you choose whether you are Male or Female. Cell C5, you choose whether you are 19-30, 31-50, or 51+.

    Servings Recommended: From there I want cell C12 to fill in As 2 Cups if they choose Female and 19-30
    1.5 Cups if they choose Female and 31-50 or 51+
    and 2 Cups if they choose Male (no matter the age)


    Can someone help me out please??!

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Formula from DropDown Lists?

    In C12:

    =IF(AND(C4="Female",C5="19-30"),"1.5.Cups","2 Cups")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Re: Formula from DropDown Lists?

    That is amazing! Thank you. So, for one a bit more complicated would it work the same way or would I need another option.

    Using the same factors (Male/Female) and Age.

    Put I need servings to be different Female 19-30 and Female 31-50=2.5 Cups
    Female 51+=2 Cups
    Male 19-30 and 31-50=3 Cups
    Male 51+= 2.5 Cups


    Thank in advance!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Formula from DropDown Lists?

    Can be done with an IF formula, but I'd create a little table and use VLOOKUP.

    However:

    =IF(AND(C4="Male",OR(C5="19-30",C5="31-50")),"3 Cups",IF(AND(C4="Female",C5="51+"),"2 Cups","2.5 Cups"))
    Last edited by AliGW; 03-04-2014 at 01:55 PM.

  5. #5
    Registered User
    Join Date
    03-04-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    5

    Red face Re: Formula from DropDown Lists?

    Thank you again! I will also look into VLOOKUP. Not sure how that works either so I may be back asking more questions!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Formula from DropDown Lists?

    Make sure you found the amended slimline formula in my last post!

  7. #7
    Registered User
    Join Date
    03-04-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Re: Formula from DropDown Lists?

    Me again!
    When you give me a formula, I get it! But then when I try to edit it for me next Line, I keep messing it up because there are small changes! So, I am going to go ahead and throw out there the next 3 I need in hopes you are still able to help me because I am so frustrated with myself not being able to figure this out!

    A)
    Female Ages 19-30 and 31-51=6 Ounces
    Female Ages 51+= 5 Ounces
    Male Ages 19-30=8 Ounces
    Male Ages 31-50=7 Ounces
    Male Ages 51+=6 Ounces

    B)
    Female ages 19-30=5.5 Ounces
    Female ages 31-50 and 51+=5 Ounces
    Male ages 19-30=6.5 Ounces
    Male Ages 31-50=6 Ounces
    Male Ages 51+=5.5 Ounces

    Last one is a change and may need a different approach?
    cell C6 is activity level (Either Moderately Active or Sedentary)
    So I need these to be based on C4, C5, and C6
    Female 19-30 Mod. Active=2,000-2,200 Calories
    Female 31-50 Mod. Active=2,000 Calories
    Female 51+ Mod. Active=1,8000 Calories
    Female 19-30 Sedentary=1,800-2,000 Calories
    Female 31-50 Sedentary=1,800 Calories
    Female 51+ Sedentary=1,600 Calories
    Male 19-30 Mod. Active=2,600-2,800 Calories
    Male 31-50 Mod. Active=2,400-2,600 Calories
    Male 51+ Mod. Active=2,200-2,400 Calories
    Male 19-30 Sedentary=2,400-2,600 Calories
    Male 31-50 Sedentary=2,200-2,400 Calories
    Male 51+ Sedentary=2,000-2,2200 Calories

    Any additional help you can give me with this 3 situations would be great! I am trying to make an easy to use sheet for my office workers to help them track intake and hopefully make healthier choices!

    Thanks in advance again

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Formula from DropDown Lists?

    I'm on the iPAD now, having just scoffed pancakes with lemon juice and sugar with my daughter, it being Shrove Tuesday, so no more Excel for me tonight! I really do think, though, that the added complexity here would warrant a VLOOKUP table, and that's how I'd go about it. If nobody else jumps in to help, I'll offer a suggestion tomorrow.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Formula from DropDown Lists?

    Good morning, Ashley!

    I hope that the attached is self-explanatory.

    The VLOOKUP and LIST sections could easily be hidden or placed on a separate sheet.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-04-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    5

    Wink Re: Formula from DropDown Lists?

    Thank you again!!! Got it finished

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Formula from DropDown Lists?

    Quote Originally Posted by ashley.butler View Post
    Thank you again!!! Got it finished
    Excellent!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to ignore blank cells in creatig dropdown lists (validation lists)
    By Elainefish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 07:45 AM
  2. [SOLVED] Cascading dropdown lists all tied to first dropdown
    By ruthl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2012, 08:03 PM
  3. Dropdown Lists
    By pmcook1979 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-12-2011, 08:03 AM
  4. dropdown lists
    By hilly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-06-2006, 06:40 PM
  5. [SOLVED] Dropdown Lists...
    By Bob Barnes in forum Excel General
    Replies: 6
    Last Post: 12-22-2005, 12:10 PM

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