Sumif, Index, Match formula not pulling in right results

KRE

New Member
Joined
Apr 18, 2023
Messages
26
Office Version
  1. 365
Platform
  1. Windows
I'm looking at the Price/Per formula that is returning $213.05 instead of pulling $594.64. Note the Contract Quantity Totals pulls 68.06 correctly using the same methodolgy?

1724255528004.png



Billing Values Table Below
1724255861091.png
 

Attachments

  • 1724255846166.png
    1724255846166.png
    19.4 KB · Views: 3

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
It's a little hard to tell from a picture, but try changing:

Excel Formula:
MATCH(B$4,'Billing Values'!$F$3:$W$3)

to:

Excel Formula:
=MATCH(B$4,'Billing Values'!$F$3:$W$3,)

as you need an EXACT match_type.
 
Upvote 0
I know I can use an Xlookup to pull the value. I guess my question is why doesn't the sumif index match formula not work when it does for other columns.

=SUMIF('Billing Values'!$F$3:$F$130,$A5,INDEX('Billing Values'!$F$3:$W$130,,MATCH(C$4,'Billing Values'!$F$3:$W$3)))

This formula correctly pulls the value 68.06 when looking at the Interior Footings row and the Contract Quantity Totals column and finding it in the billing values tab.

However,

=SUMIF('Billing Values'!$F$3:$F$130,$A5,INDEX('Billing Values'!$F$3:$W$130,,MATCH(B$4,'Billing Values'!$F$3:$W$3)))

This formula incorrectly pulls the value 213.05 when looking at the Interior Footings row and the Price/Per column from the Analytics tab and finding it in the billing values tab. But in the Billing values tab that value is under the Labor column. What it should have pulled was the value 594.64.
 
Upvote 0
You need an EXACT match. To illustrate:

ABCDEFGHIJKLMNOPQR
1BillingContractWeeklyQuantity% RemainPriceConcreteEquiptMiscFuelLaborTaxStoneProfitVarianceRebarInhouseSubContract
268.06594.64213.05
3
4WrongRight
5Contract68.0668.06You got lucky!
6Price213.05594.64
7Labor68.06213.05
8
Sheet1
Cell Formulas
RangeFormula
B5:B7B5=INDEX($A$2:$R$2,MATCH($A5,$A$1:$R$1))
C5:C7C5=INDEX($A$2:$R$2,MATCH($A5,$A$1:$R$1,))
 
Upvote 0
Solution
Thank you! What I was missing was the comma after the match formula. And yes I did get lucky.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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