Nested IF Returning "FALSE"

bolified

New Member
Joined
Mar 27, 2018
Messages
2
I am trying to create a spreadsheet so that users can change start month from drop down list, for example if they choose June all months prior to June will read as 0 and all the months after (including June) will have the recurring value. I have tried to accomplish this with a nested IF formula, it works fine except when June is selected I have 'FALSE' returned for all.

This is my original formula...
=IF($B39="December",0,IF($B39="November",0,IF($B39="October",0,IF($B39="September",0,IF($B39="August",0,IF($B39="July",0,IF($B39="June",$C39,IF($B39="May",$C39,IF($B39="April",$C39,IF($B39="March",$C39,IF($B39="February",$C39,IF($B39="January",$C39,IF($B39="","")))))))))))))

I cannot figure out why it is returning false, I even tried a cascading nested IF but that didn't work either. I cannot have any macros in this particular workbook so that isn't an option for me.

Any help is appreciated.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
There are probably easier ways. How is your data organised? For example:


Book1
BCDEFGHIJKLMNO
38JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
39June220000022222222222222
Sheet1
Cell Formulas
RangeFormula
D39=IF(DATEVALUE("1 "&D$38&" 2018")>=DATEVALUE("1 "&$B39&" 2018"),$C39,0)


WBD
 
Upvote 0
janfebmaraprmayjun
9911080125100109
apr4
feb2
jan1
jun6
say you want march onwardsmar3
H11 belowmay5
look up mar in table on right and get3
######
maraprmayjun
80125100109
in A14 (below ######)
=IF(COLUMN()<$H$11,"",A1)
this was dragged down and across

<colgroup><col width="64" span="14" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Hi there

I have tried this formula out in a sheet, and the results (for me) are: January to June inclusive shows the value in C39 (I placed 'abc' in there). July to December returns 0. Maybe its the content of C39 that's the problem?

Regards
John
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,075
Members
449,205
Latest member
Healthydogs

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