Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-21-2016, 07:31 AM
gebobs gebobs is offline Select value from table based on two criteria Windows 7 64bit Select value from table based on two criteria Office 2010 64bit
Expert
Select value from table based on two criteria
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default Select value from table based on two criteria

OK...total brain meltdown here. I need to find the value in the third column of a table based on the values in the first two. It's basically a small lookup table with four unique rows.

So I did this in Google docs using Sumproduct but when I exported it to Excel, something is amiss. I've done it this way before in Excel, but I can't seem to figure out where I've gone wrong.

If someone could lead the way or point me to another solution, I'd appreciate it.

In the attached workbook, the lookup table, Prices, is in the tab named Metrics. There are three columns: Density, Material, and Cost. As you can see, there are just two different densities and materials an, for each combination a unique cost, and thus a total of four rows. The test row I am using (density=14 and material=E) is highlighted.

Highlighted on the first tab, Summary, is the cell with the formula I am having fits with and the other cells in the table that it refers to. Basically, I want it to find the cost in the Prices table using the density and material of the SKU for that row. The formula as is:

=SUMPRODUCT([@Material]=Prices[Material],[@Density]=Prices[Density],Prices[Cost])*[@BF]

So it should return cost for the criteria in that row (density=14 and material=E) and multiply that number by the value for BF (i.e. board feet).

=Cost(14,E)*BF
=0.2968*7906


=2346.50

As you can see, the formula returns a big fat zero. Sorry for the long explanation. I'm sure it's a simple solution for one of you smart folk. Cheers!
Attached Files
File Type: xlsx Price Calculator.xlsx (16.9 KB, 13 views)
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select value from table based on two criteria Selecting random cells based on criteria mesTrethowan Excel 11 10-28-2015 06:51 AM
Select value from table based on two criteria Complex Mail Merge based on Criteria fairchance Mail Merge 11 08-22-2015 04:32 AM
transpose values based on mulitple criteria mlttkw Excel 1 12-06-2013 02:00 AM
MACRO - Insert row based on Form Field Criteria Elan05 Word VBA 5 04-16-2013 06:39 AM
Change values in cells based on criteria SaneMan Excel Programming 2 02-02-2012 07:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:58 AM.


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