Stumped by MAXIFS Returning Zero

NorthbyNorthwest

Board Regular
Joined
Oct 27, 2013
Messages
181
Office Version
  1. 365
Hi, everyone. I have an Excel table from which I want to extract min and max values from based on multiple criteria. In table below I have criteria in cells H1 and H2. I want to return the fiscal month in column E from table. Cell H4 has MINIFS formula. Cell I4 contains same references for MAXIFS formula. The Fiscal Month column is formatted as a number. But formula does not work. I've tried numerous things over last few hours. I literally cannot understand why formula won't work. It seems so straightforward. Could someone tell me what I'm doing wrong or supply a formula alternative to get the result I want?

MinMax2.jpg
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
When I use the following code it returns the max. See if that works.
Excel Formula:
=MAXIFS(tblTest[[#All],[Fiscal Month]],tblTest[[#All],[Employee]],$H$1,tblTest[[#All],[Position]],$H$2)
If it's not a number though it wont be able to return anything.
1738106496589.png
 
Upvote 0
Cubist, it returned FALSE.
It means that column E is text. Formatting won't effect how Excel store the values. Try this:
  • Highlight the column
  • Data tab -> Text to Columns
  • Delimited -> Next
  • Uncheck all delimiters -> Next
  • General -> Finish
 
Upvote 0
Solution
Cubist, it returned FALSE.
Cubist, thank you so much. I've been an Excel user for a lot of years. And, yet I forget just because something is formatted as a number doesn't mean Excel recognizes it as number. Almost never is it a problem. I placed the VALUE function around the fiscal month numbers, and the MINIFS and MAXIFS formulas worked. Thanks for quick response. I honestly don't know if I would've figured it out. Or if I did, I don't want to imagine how much time it would've taken. I was sure the fiscal months were actually numbers. Thanks, again!
 
Upvote 0

Forum statistics

Threads
1,226,113
Messages
6,189,048
Members
453,522
Latest member
Seeker2025

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