Sumifs + vlookup

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
304
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I'm trying to do something I am sure has been done before. I can't get it to work the way I want though. I have two criteria that need to be used (depth and edge letter) to look up the correct dimension. I've tried VLOOKUP, which does fine if I only want to look up one criteria. I'm not sure how to combine it with SUMIF, or SUMIFS or if I'm on the wrong track.

The user will enter depth (1 3/8, 2, 2 1/2, 3, 3 1/2, 4) and identify the edge condition (A, B, C, D, E, F, G, H, J, K, Q) and I want the formula to come up with the appropriate value. For example, a depth of 1 3/8 with a F edge will be 2.3318. A depth of 4 with an A edge will be 6.3313, and so on. I have the user entering the depth into cell C3 and the edge into cell D3 and am placing the formula for displaying the result in E3. I hope this makes sense. Explaining Excel is always such a challenge.

I have the following reference chart located at V1:AC12

EDGE
EDGE #
1 3/822 1/233 1/24
A13.64434.33134.83135.33135.83136.3313
B13.64434.33134.83135.33135.83136.3313
C21.4652.1522.6523.1523.6524.152
D31.7352.4222.9223.4223.9224.422
E13.64434.33134.83135.33135.83136.3313
F42.33183.01883.51884.01884.51885.0188
G21.4652.1522.6523.1523.6524.152
H52.01932.70653.20653.70654.20654.7065
J63.26913.95614.45614.95615.45615.9561
K42.33183.01883.51884.01884.51885.0188
Q13.64434.33134.83135.33135.83136.3313

<colgroup><col style="width:47pt" width="62" span="8"> </colgroup><tbody>
</tbody>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hello,

Try use this formula:

=INDEX($V$1:$AC$12,MATCH(D3,V1:V12,FALSE),MATCH(C3,V1:AC1,FALSE))
Where C3 is the depth chosen by the user and D3 is the edge chosen by the user.

EDIT: Changed the formula as it was incorrect - apologies!
EDIT2: I should really read the whole question first as I repeated some things you put :p sorry!
 
Last edited:
Upvote 0
I'm not sure drop downs will work because the value displayed as the result is going to be added together with three other edge values located in other cells to give a total.
 
Upvote 0
Just link the dropdown to cells C3 and D3 where the results will be stored. use the formula supplied to extract the correct figure.
Then manipulate that any way you want.

If you're doing the same thing four times (quote: "three other") just have 8 dropdowns two for the first selection two for second two for the third two for the fourth, linking to a different pair of cells.
Obviously the above formula will occur three more times with slightly different MATCH( ) values based on whatever cells you link to.
 
Last edited:
Upvote 0
Awesome! Your edited formula works great! Thank you!
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top