Need help with a formula

pujo

Well-known Member
Joined
Feb 19, 2009
Messages
708
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
Morning!

FOQD = a range of dates.
FOURTH_QUARTER = a range of number for the fourth quarter.

The formula is displaying the first date in the range however the data for this date is zero. Being that the fourth quarter doesn't have any data yet. (works right with data)
How can I make the formula return a zero or blank if the FOURTH_QUARTER range is all zero's?

Code:
=IFERROR(INDEX(FOQD,0,MATCH(MAX(FOURTH_QUARTER),FOURTH_QUARTER,0)),"0")

Thanks all!
(hope I explained it right)
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Maybe...

=IF(COUNTIF(FOURTH_QUARTER,">0"),INDEX(FOQD,0,MATCH(MAX(FOURTH_QUARTER),FOURTH_QUARTER,0)),"")

M.
 
Upvote 0
Marcelo, the formula works like I want. Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,038
Messages
6,128,450
Members
449,453
Latest member
jayeshw

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