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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,761
Messages
6,126,735
Members
449,333
Latest member
Adiadidas

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