Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2022, 02:26 PM
maw444 maw444 is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Advanced Beginner
Looking up a value with user changing the lookup coloum
 
Join Date: Feb 2021
Posts: 35
maw444 is on a distinguished road
Default Looking up a value with user changing the lookup coloum

I have a spreadsheet which has

Column A - List of Products we sell
Column B - 2022 Prices
Column C - 2023 Prices
Column D - 2024 Prices

i want to create a spreadsheet where the user work out how much the total product costs.



In simple terms, if the User Selects 'Product A' and then '2022' - both drop down lists - then the result will be the price of the product in 2022, (answer from cell B2)

if the User Selects 'Product B ' and then '2023' - both drop down lists - then the result will be the price of the product B in 2023 , (answer will be in cell C3)

any ideas how I use VLoookup or similar in that way!
Reply With Quote
  #2  
Old 12-10-2022, 01:21 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Please post a sample sheet ( no pics please) with some data and manually added expected results. Thx
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 12-10-2022, 01:38 AM
fjns fjns is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Novice
 
Join Date: Sep 2022
Location: Hungary, Szeged
Posts: 16
fjns is on a distinguished road
Default

Hi, see in attached file a possible solution...
Attached Files
File Type: xlsx ProductsPrices.xlsx (25.3 KB, 4 views)
Reply With Quote
  #4  
Old 12-10-2022, 03:29 AM
maw444 maw444 is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Advanced Beginner
Looking up a value with user changing the lookup coloum
 
Join Date: Feb 2021
Posts: 35
maw444 is on a distinguished road
Default

Attached example sheet.

I have entered examples of the result I want in S11 and S12 given the inputs.
Attached Files
File Type: xlsx Benefit in Kind Rates.xlsx (26.2 KB, 3 views)
Reply With Quote
  #5  
Old 12-10-2022, 04:26 AM
fjns fjns is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Novice
 
Join Date: Sep 2022
Location: Hungary, Szeged
Posts: 16
fjns is on a distinguished road
Default

Hi, see the attached file (with an auxiliary column) ...
Attached Files
File Type: xlsx Benefit in Kind Rates.xlsx (20.5 KB, 4 views)
Reply With Quote
  #6  
Old 12-10-2022, 05:11 AM
ArviLaanemets ArviLaanemets is offline Looking up a value with user changing the lookup coloum Windows 8 Looking up a value with user changing the lookup coloum Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

My advice is - redesign your data table. E.g. your price table will be like;
Column A - Product;
Column B - Year;
Column C - Price.

If you want to use Data Validation Lists to select product or year (either in your prices table, or in your report sheet), you also need according worksheets with products list and years list. Whenever a price for new product or year must be registered, this product or year must be registered in those tables at first. After that, the user can add new price to prices table. The additional bonus - users can't enter products or years with typos.

On your report sheet, you'll have data validation lists to select product and year, and the wanted price is calculated like as (I use Defined Table syntax in my example,you can replace Defined Table column references with standard range references wen you want. And in my example I defined cells with Data Validation Lists as Defined Names RepProduct and RepYear):
Code:
=SUMIFS(PriceTable[Price],PriceTable[Product], RepProduct, PriceTable[Year], RepYear)
Also, when you define your prices table as Defined Table (e.g. PriceTable), or you apply manually the Autofilter to your table, the asked task isn't really needed at all - user can set autofilter for Product and Year columns, and gets it. Even more - with autofilter user can select e.g. several products, and a year, and gets a list of prices for those products!
Reply With Quote
  #7  
Old 12-10-2022, 05:14 AM
maw444 maw444 is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Advanced Beginner
Looking up a value with user changing the lookup coloum
 
Join Date: Feb 2021
Posts: 35
maw444 is on a distinguished road
Default

Thank you - that works.

Need to sort out what happens if you want to add the NDE surcharge - but it's a help!
Reply With Quote
  #8  
Old 12-10-2022, 07:05 AM
fjns fjns is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Novice
 
Join Date: Sep 2022
Location: Hungary, Szeged
Posts: 16
fjns is on a distinguished road
Default

What's the NDE surcharge mean?
Reply With Quote
  #9  
Old 12-10-2022, 09:21 AM
maw444 maw444 is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Advanced Beginner
Looking up a value with user changing the lookup coloum
 
Join Date: Feb 2021
Posts: 35
maw444 is on a distinguished road
Default

Certain vehicles has an additional surcharge - if you look at the data you will see that for some cars with a particular emission figure there is an additional % to be applied
Reply With Quote
  #10  
Old 12-10-2022, 09:52 AM
fjns fjns is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Novice
 
Join Date: Sep 2022
Location: Hungary, Szeged
Posts: 16
fjns is on a distinguished road
Default

I hope, I interpreted the data in the table correctly.
Attached Files
File Type: xlsx Benefit in Kind Rates NDE.xlsx (21.2 KB, 4 views)
Reply With Quote
  #11  
Old 12-10-2022, 10:02 AM
maw444 maw444 is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Advanced Beginner
Looking up a value with user changing the lookup coloum
 
Join Date: Feb 2021
Posts: 35
maw444 is on a distinguished road
Default

Sorry - it's not the too added together - the surcharge in your example is 4% - so the answer should be 30.
Reply With Quote
  #12  
Old 12-10-2022, 10:18 AM
fjns fjns is offline Looking up a value with user changing the lookup coloum Windows 10 Looking up a value with user changing the lookup coloum Office 2019
Novice
 
Join Date: Sep 2022
Location: Hungary, Szeged
Posts: 16
fjns is on a distinguished road
Default

Maybe it will be good now.
Attached Files
File Type: xlsx Benefit in Kind Rates NDE.xlsx (21.1 KB, 6 views)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with lookup / v lookup big failure mda99das Excel 4 11-04-2022 09:38 AM
User 1 cannot open Office files from File Explorer (it hangs forever); user 2 has no problem! BillN Office 0 09-23-2020 08:55 AM
LOOKUP - Complex lookup with 2 lookups in 1 cell sglandon Excel 6 05-05-2016 09:44 AM
Looking up a value with user changing the lookup coloum How can I prevent a User from changing the font format set by the Powerpoint template? Ochimus PowerPoint 1 06-29-2015 04:53 AM
How can I get Outlook from one user to another w/o a .pst file (primary user on computer is corrupt) Tenmakk Outlook 0 03-01-2015 12:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft