Return last value of a row based on another value

Status
Not open for further replies.

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 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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Status
Not open for further replies.

Forum statistics

Threads
1,214,666
Messages
6,120,806
Members
448,990
Latest member
rohitsomani

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