+ Reply to Thread
Results 1 to 9 of 9

Formulas depending on which item selected from drop down list

  1. #1
    Registered User
    Join Date
    04-07-2022
    Location
    Swindon
    MS-Off Ver
    365
    Posts
    5

    Formulas depending on which item selected from drop down list

    I have created a drop down list with 3 options of profit margins 20,30 & 40. Depending on what is selected I then want to take a net price from a different column and multiply it by either 1.25, 1.4 or 1.6 to get a retail price in another column and cannot figure out how to do this? Columns I refer to highlighted in red
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Formulas depending on which item selected from drop down list

    Does this do what you're after in Q2?

    =O2*VLOOKUP(P2,{20,1.25;30,1.4;40,1.6},2,0)

    I'd normally have the array (the bit in {}) in cells somewhere and refer to that - it makes it much easier to edit.

  3. #3
    Registered User
    Join Date
    04-07-2022
    Location
    Swindon
    MS-Off Ver
    365
    Posts
    5

    Re: Formulas depending on which item selected from drop down list

    Thank you very much that has worked perfectly!

  4. #4
    Registered User
    Join Date
    04-07-2022
    Location
    Swindon
    MS-Off Ver
    365
    Posts
    5

    Re: Formulas depending on which item selected from drop down list

    As you are so good can you help me with another issue:
    All of our parts are labelled RDK0001 etc and we have a quantity in stock column
    On a separate sheet we have a booking out sheet and I would like (if possible) to have it so that when a part no is booked out it decreases the stock total on the parts list sheet

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Formulas depending on which item selected from drop down list

    Try the following in cell E2 on the BOOKING OUT SHEET:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Once activated drag the fill handle down to cell E3.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    04-07-2022
    Location
    Swindon
    MS-Off Ver
    365
    Posts
    5

    Re: Formulas depending on which item selected from drop down list

    Hi Thankyou for this - sorry for the delay I have been away

    I have copied this and it decreases the stock remaining on the booking out sheet. However what I need is when we book out a part on booking out sheet column D that it decreases the stock remaining amount on Parts List column K depending on which part number is booked out as well as decreasing the stock remaining on booking out sheet (however may not need that column as well tbh) Hope this makes sense

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Formulas depending on which item selected from drop down list

    I believe that in order to do what you describe there will have to be another column that displays the initial amount in stock for each part on the Parts List sheet.
    If a formula is placed in column K (Parts List sheet) then it will overwrite the numbers presently in that column.
    In the attached file the initial stock amount is in column S.
    The formula that populates column K is: =IF(S2="","",S2-SUMIFS('BOOKING OUT SHEET'!D$2:D$3,'BOOKING OUT SHEET'!B$2:B$3,A2))
    Let us know if you have any questions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-07-2022
    Location
    Swindon
    MS-Off Ver
    365
    Posts
    5

    Re: Formulas depending on which item selected from drop down list

    Thank you very much that is great!

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Formulas depending on which item selected from drop down list

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. [SOLVED] Checking that the correct item is selected from drop list
    By RTH in forum Excel General
    Replies: 3
    Last Post: 12-09-2018, 01:18 PM
  2. Replies: 16
    Last Post: 01-25-2018, 12:18 PM
  3. [SOLVED] Active X drop down list - always return to the item in the list that was selected.
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-14-2017, 09:41 AM
  4. Display multiple value when item selected in drop down list
    By peter.lu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2015, 05:06 PM
  5. Replies: 3
    Last Post: 10-08-2014, 04:17 PM
  6. Run macro when item from drop-down list is selected
    By barnett2000 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-09-2013, 12:52 PM
  7. How to get index of selected item in drop down list?
    By nleahcim in forum Excel General
    Replies: 3
    Last Post: 08-08-2011, 02:08 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