+ Reply to Thread
Results 1 to 10 of 10

Formula depending on the selection from drop down menu

  1. #1
    Registered User
    Join Date
    01-10-2021
    Location
    London
    MS-Off Ver
    Web
    Posts
    5

    Formula depending on the selection from drop down menu

    I am using Excel Web for this one. Basically I need calculate the price of the product depending on the type of material it is made off * metres(Metres are type in, while materials are drop down menu, each material have its own price).
    Hopefully I explained myself properly.
    Thanks,
    Mark
    Last edited by mrkmvzn; 01-13-2021 at 01:32 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula depending on the selection from drop down menu

    Hello and welcome to the forum

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-10-2021
    Location
    London
    MS-Off Ver
    Web
    Posts
    5

    Re: Formula depending on the selection from drop down menu

    please find photo attached
    Attached Images Attached Images

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula depending on the selection from drop down menu

    Quote Originally Posted by mrkmvzn View Post
    please find photo attached
    The request was for a sample workbook, not a pic - we cannot work with pics.

    Also, there is nothing magical about a drop down (data validation), it acts in the exact same way as if you had entered the data manually, and excel formulas only see the data in the cell as if it had been entered manually.

    The only real advantages of using a DD is that it saves typing, avoids typos/spelling mistakes, restricts entry to what you specify, and maybe saves a bit of time in entering data.
    Other than that, no difference to manual entry

    So, having said that, if you know how to reference a regular cell, you would reference the DD in the exact same way
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    01-10-2021
    Location
    London
    MS-Off Ver
    Web
    Posts
    5

    Re: Formula depending on the selection from drop down menu

    Sorry FDibbins, first time on this kind of forum. Can you please help me, as IF statement doesn't work. And as I understand I need to make IFS, due to have a lot of options from dropdown menu.
    I will attach the excel file right now.
    Thanks in advance

  6. #6
    Registered User
    Join Date
    01-10-2021
    Location
    London
    MS-Off Ver
    Web
    Posts
    5

    Re: Formula depending on the selection from drop down menu

    Hopefully this is how it should be done, if it is incorrect, let me now.
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula depending on the selection from drop down menu

    Not sure where you want this, but try...
    =INDEX($H$3:$H$11,MATCH(C2,$I$3:$I$11,0))*D2

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Formula depending on the selection from drop down menu

    or:

    =SUMPRODUCT(($I$3:$I$11=C2)*$H$3:$H$11*D2)
    Quang PT

  9. #9
    Registered User
    Join Date
    01-10-2021
    Location
    London
    MS-Off Ver
    Web
    Posts
    5

    Re: Formula depending on the selection from drop down menu

    Thanks bebo, that's exactly what I needed! FDibbins, unfortunately your formula didn't work:/

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula depending on the selection from drop down menu

    Perhaps you entered it incorrectly, my suggestion gives the same answers as bebo's sumproduct...
    C
    D
    E
    F
    G
    1
    Medžiaga Metrai Savikaina INDEX/MATCH SUMPRODUCT
    2
    Veliuras
    5
    75
    70
    70
    3
    Veliuras
    10
    140
    140
    4
    Veliuras(AR01403)
    15
    195
    195
    5
    Veliuras(AR01403)
    20
    260
    260
    6
    Kapronas
    25
    300
    300
    7
    Kapronas
    30
    360
    360
    8
    Kapronas
    35
    420
    420
    9
    Šilkas
    40
    280
    280
    10
    Linas
    45
    180
    180
    11
    Blackout
    50
    1000
    1000

+ 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. Replies: 20
    Last Post: 10-16-2015, 09:56 AM
  2. How a drop down menu's list can change depending on another dropdown menu.
    By sudeepkm73 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-30-2015, 03:18 AM
  3. [SOLVED] How a drop down menu's list can change depending on another dropdown menu.
    By marc1980 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2014, 04:58 PM
  4. Formula based on drop down menu selection
    By danjpalmer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2014, 03:45 PM
  5. Replies: 2
    Last Post: 08-15-2013, 07:03 AM
  6. Formula to calculate totals depending on Drop Down Menu
    By Hadda in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2013, 09:41 PM
  7. Replies: 1
    Last Post: 03-27-2013, 07:04 AM

Tags for this Thread

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