+ Reply to Thread
Results 1 to 4 of 4

Formula that recognizes data from a drop down list selection

Hybrid View

dwoodson297 Formula that recognizes data... 03-13-2013, 04:35 PM
JBeaucaire Re: Formula that recognizes... 03-13-2013, 07:57 PM
dwoodson297 Re: Formula that recognizes... 03-14-2013, 08:11 AM
JBeaucaire Re: Formula that recognizes... 03-14-2013, 10:36 AM
  1. #1
    Registered User
    Join Date
    03-13-2013
    Location
    KY
    MS-Off Ver
    Excel 2010
    Posts
    8

    Formula that recognizes data from a drop down list selection

    I am a somewhat beginner at advanced excel spreadsheets...tried to up my skills.

    I want to be able to select an item from a list and have a formula that uses a a variation of its information.

    For example, In column A, I have a drop down list with multiple items (4x8x16, 8x8x16, etc). In Column B, I want it to recognize my selection and input a corresponding area (4x16 or 8x16 in this case) into a formula. So if I select 4x8x16 from the list, I want 4x16 or 64 to be automatically inserted in my formula. If I select 8x8x16 then it would insert 8x16 or 128.

    I hope this makes sense. Any suggestions?
    Last edited by dwoodson297; 03-14-2013 at 10:53 AM.

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

    Re: Formula that recognizes data from a drop down list selection

    Put this formula in B1, then copy down as needed:

    =IFERROR(TRIM(LEFT(SUBSTITUTE($A1, "x", "     "), 5)) * TRIM(RIGHT(SUBSTITUTE($A1, "x","     "), 5)), "")
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    03-13-2013
    Location
    KY
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Formula that recognizes data from a drop down list selection

    Awesome...that works. That is probably the most complicated excel formula I have every seen.

    I'll be honest, I see the basic form of the formula, but I'm not sure exactly how each piece of it works. With that said, I have one more question.

    How do I modify this formula to take into account the following.
    Your formula appears to be taking the first number and multiplying it by the last (4x8x16)=64 or (8x8x16)=128 What if I want to make it do the same for the second and the last numbers? (4x8x16)=128 or (8x8x16)=128

    Thanks

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

    Re: Formula that recognizes data from a drop down list selection

    Like so:

    =IFERROR(TRIM(MID(SUBSTITUTE($A2, "x", "     "), 5, 5)) * TRIM(RIGHT(SUBSTITUTE($A2, "x","     "), 5)), "")


    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ 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