Match formula or other

jcaptchaos2

Well-known Member
Joined
Sep 24, 2002
Messages
1,032
Office Version
  1. 365
Platform
  1. Windows
This should be easy and probably is but I am drawing a blank, I have a pivot table that will grow and shrink with data, all I am trying to do is insert a formula in "A5" to look at a range "B5:BB100" and find "Grand Total" there is a "Grand Total" in row 5 and a "Grand Total" in column "B". I am familiar with vlookup and hlookup but since the row and column that the work "Grand Total" is in will always be changing it won't work.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Index and match will work for this:

This pivot table goes from a4:d10

=INDEX(A4:D10,MATCH("Grand Total",A4:A10,0),MATCH("Grand Total",A4:D4,0))

Returned the correct value for the grand total at the bottom right of the pivot table.
 
Upvote 0
i didn't modify it for your table structure, so try this:

=INDEX(b5:bb100,MATCH("Grand Total",b54:b100,0),MATCH("Grand Total",b5:bb5,0))
 
Upvote 0
Yes that works I think you ment 5 instead of 54 in the middle but with changing that it works great. Thanks for you help.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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