Need help adapting a formula

PGD15

Board Regular
Joined
Aug 5, 2016
Messages
137
Hi,

I have written the following formula:

=INDEX('Daily Breakdown'!AD1:AD1000,COUNTIF(('Daily Breakdown'!AD1:AD1000),"<>0"))

this returns the last value in column AD which is not 0.

However I want this to return the bottom/last value based on the value in column B

So if column B is equal to certain value in a different tab then throughout range AD1:AD1000 return the last value if this is true.

So i kinda want to do index(AD1:AD1000,Match('Monthly Summary Tab'B21,B3:B100),0)*/(COUNTIF(('Daily Breakdown'!AD1:AD1000),"<>0")),1)

Though im pretty sure that doesn't work but that kind of thing. hope that makes sense


Just to clarify i wish to return the last value in the ad (Monthly tab) column if the range in cell b3:b100 (monthly tab) is equal to that of the value in B21 (daily tab) AND the value is not equal to 0.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
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