Using greater than and less than with an IFS statement

Dprobasco

New Member
Joined
Oct 15, 2023
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
I have a spreadsheet that has a column with the months of the year shown as a number.
I am trying to write an ifs statement that will go down the column and identify which quarter a month belongs with And place that number (1, 2, 3, 4) in a column next to the month.

I currently have this formula which works but seems rather clunky.

=@IFS(G2=1,"1",G2=2,"1",G2=3,"1",G2=4,"2",G2=5,"2",G2=6,"2",G2=7,"3",G2=8,"3",G2=9,"3",G2=10,"4",G2=11,"4",G2=12,"4")

Any advice on how to do this?

Dale
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi & welcome to MrExcel.
How about
Excel Formula:
=INT((G2-1)/3)+1
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,123
Messages
6,123,182
Members
449,090
Latest member
bes000

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