Help with Formula

gyagos

New Member
Joined
Mar 27, 2018
Messages
27
Office Version
  1. 365
Platform
  1. Windows
I have the following formula to combine # of days in column Q to months. The issue is that the day range for the highlighted (<366) is not working. All the days that are within 331-365 are coming back as ?NAME. What would be the cause as i cannot figure this out



=IF(Q2<31,"1 Month",IF(Q2<61,"2 Months",IF(Q2<91,"3 Months",IF(Q2<121,"4 Months",IF(Q2<151,"5 Months",IF(Q2<181,"6 Months",IF(Q2<211,"7 Months",IF(Q2<241,"8 Months",IF(Q2<271,"9 Months",IF(Q2<301,"10 Months",IF(Q2<331,"11 Months",IF(Q2<366,”12 Months”,"1+ Years"))))))))))))

Thanks in advance
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Excel is very particular.
Note in the errored section, you are using slanted double-quotes. You are using straight ones everywhere else.
Excel like the straight ones, not the slanted ones.
 
Upvote 0
Solution
well what do you know :p
redid the quotes and it works. Thanks for the quick response and solution
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,753
Members
449,094
Latest member
dsharae57

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