if formula

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
1,062
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
I don't understand as why the out put is as In Center instead it has to be Per Min.
as the month is Jun, any suggestion

Excel Formula:
=IF(TEXT(MAX('ACD Dumps'!A:A),"MMM")={"Nov","Dec","Jan","Feb","Mar","Apr","May","Jun"},"Per Min","In Center")
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
What is the actual format of the column A:A? It maybe the TEXT function around is causing an unknown, despite it appearing to look like "Jun", hence it's not matching the TRUE condition of your IF statement.

Can you post an example of your spreadsheet as well?
 
Upvote 0
What is the actual format of the column A:A? It maybe the TEXT function around is causing an unknown, despite it appearing to look like "Jun", hence it's not matching the TRUE condition of your IF statement.

Can you post an example of your spreadsheet as well?
it is mmm-yyyy format


May-2021​
Jun-2021​
Jun-2021​
Jun-2021​
Jun-2021​
Jun-2021​
May-2021​
May-2021​
Jun-2021​
Jun-2021​
Jun-2021​
Jun-2021​
Jun-2021​
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Depending on your version of Excel, how about
Excel Formula:
=IF(OR(MAX(MONTH(A:A))={11,12,1,2,3,4,5,6}),"Per Min","In Center")
 
Upvote 0
Does this help? Formula in yellow
Other.xlsm
IJK
1DataTestFinal
2May-2021In CentreIn Centre
3Jun-2021Per Min
4Jul-2021In Centre
5Aug-2021In Centre
6Sep-2021In Centre
7Oct-2021In Centre
8May-2021
9May-2021
10Jun-2021
11Jun-2021
12Jun-2021
13Jun-2021
14Jun-2021
Main
Cell Formulas
RangeFormula
K2K2=IF(MAX(MONTH(I2:I14))=MEDIAN(MAX(MONTH(I2:I14)),7,8,9),"Per Min", "In Centre")
J2:J7J2=IF(MONTH(I2)=MEDIAN(MONTH(I2:I14),7,8,9),"Per Min", "In Centre")


Or for later Excel versions:
Excel Formula:
=LET(max_month,MAX(MONTH(I2:I14)),IF(max_month=MEDIAN(max_month,7,8,9),"Per Min", "In Centre"))
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
done.
 
Upvote 0
Hi VMJam02,

Here's my contribution,

VMJam02.xlsx
ABC
1May-21Result
2Jun-21Per Min
3Jun-21
4Jun-21
5Jun-21
6Jun-21
7May-21
8May-21
9Jun-21
10Jun-21
11Jun-21
12Jun-21
13Jun-21
14
ACD Dumps
Cell Formulas
RangeFormula
C2C2=IF(OR(MONTH(MAX('ACD Dumps'!A:A))<7,MONTH(MAX('ACD Dumps'!A:A))>10),"Per Min","In Center")
 
Upvote 0
=IF(OR(MAX(MONTH(A:A))={11,12,1,2,3,4,5,6}),"Per Min","In Center")
still giving me "In Center", were as it has to me Per Min

=IF(OR(MAX('ACD Dumps'!A:A)={11,12,1,2,3,4,5,6}),"Per Min","In Center")


This is how it should be so if the month is from Nov till Jun it will be Per Min and once the Month is not equal to Nov till Jun then In Center. I hope now we can fig the way out.

May-2021​
Per Min
May-2021​
Per Min
May-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
May-2021​
Per Min
May-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
Jun-2021​
Per Min
Jul-2021​
In Center
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,843
Members
449,193
Latest member
MikeVol

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