Conditional Formula

Cagey93

New Member
Joined
Apr 17, 2019
Messages
34
This would probably be a very simple question, but I can’tseem to get it right.

What I need is a formula in a cell to say if this cell = a set of months i.e.January, April, July and so on then show this list of tasks and if the other monthsshow another set so example.

=IF(C5=January,Feb,Mar) then it should show cell range “Values!C5-C9”
Or IF(C5=April, May, June) then show “Values!C10-C15”.
If this isn't making sense apologies.

 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Is C5 a date or just a month name string ?
How would you like to show several cells ?
 
Last edited:
Upvote 0
Show an example how to display it !

So C5 will be the current month i.e. November for now.
So, from a monthly basis the tasks will change weather it’sa Quarter end or just a regular month.

So, for example I would like it if its January to display inCells C7-C17 the list of tasks for that month
And if it’s another month to display another set of tasks inthose cells. So if its November like the below it will show a list of tasks inthe cells below.
November
XXXX

XXXX
XXXX
XXXX
There are only 2 lists so it needs to be if its one of Xmonths show this but if one of Y months show this.
 
Upvote 0
if its November like the below it will show a list of tasks inthe cells below.

From where to pick up the list ???
 
Upvote 0
You mentioned that in C5 will a month name: January, February, March etc ...
Depending if it is a regular month : January, February, we have to display in cell C7 to C17 a list of data .... C3:C13 on Sheet3 .. is it ?
If it is a end quarter month: March, June etc...
we have to display in cell C7 to C10 a list of data .... F3:F6 on Sheet3 .. is it ?

 
Upvote 0
So if my understanding is correct you could do:
C5 = Today() and use a custom format like "mmmm" it will display only the month of today
C7 =IF(MAX(IFERROR(FIND({1,2,4,5,7,8},MONTH($C$5)),0))=0,Sheet3!F3,Sheet3!C3)
confirm using Contole + Shift + Enter some curlybracket will appear
Copy C7 and drag down to C10
C11 =IF(MAX(IFERROR(FIND({1,2,4,5,7,8},MONTH($C$5)),0))=0,"",Sheet3!C7)
confirm using Contole + Shift + Enter some curlybracket will appear
Copy C11 and drag down to C16
 
Last edited:
Upvote 0
Another more simple ... without Control + Shift + Enter

C5 = Today() and use a custom format like "mmmm" it will display only the month of today

C7 ==IF(ISERROR(FIND(TEXT(MONTH($C$5),"dd"),"03,06,09,12")),Sheet3!C3,Sheet3!F3)
Copy C7 and drag down to C10

C11 ==IF(ISERROR(FIND(TEXT(MONTH($C$5),"dd"),"03,06,09,12")),Sheet3!C7,"")
Copy C11 and drag down to C16
 
Upvote 0
Another more simple ... without Control + Shift + Enter

C5 = Today() and use a custom format like "mmmm" it will display only the month of today

C7 ==IF(ISERROR(FIND(TEXT(MONTH($C$5),"dd"),"03,06,09,12")),Sheet3!C3,Sheet3!F3)
Copy C7 and drag down to C10

C11 ==IF(ISERROR(FIND(TEXT(MONTH($C$5),"dd"),"03,06,09,12")),Sheet3!C7,"")
Copy C11 and drag down to C16

That is correct the cell does display the month as =Today() and uses MMMM to show the actual text so i will give this option a wirl and see if it brings it back.

Thank you :)
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,210
Members
448,554
Latest member
Gleisner2

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