Goliath1234
New Member
- Joined
- Nov 7, 2018
- Messages
- 3
Hi,
I am trying to create a calendar from a list of activities where if the cell is between a certain time frame it will output the name of the activity during that time frame. The name of cells are within three cells A5, B5 and C5 which the text will be combined into the one cell. However i currently have this set to one specific row 5 (1 activity). I would like this to pick up an array of rows (multiple activities) but the AND function wont let me do a formula with an array. See below formula.
=IF(AND(K25>$D$5,K25<$F$5),$A$5 &" " & $B$5 & " " &$C$5," ")
i have attempted the below but get a #VALUE ! error
=IF(AND(K25>$D5:$D8,K25<$F5:$F8),$A5:$A8 &" " & $B5:$B8 & " " &$C5:$C8," ")
Is there a way around this?
Thanks
I am trying to create a calendar from a list of activities where if the cell is between a certain time frame it will output the name of the activity during that time frame. The name of cells are within three cells A5, B5 and C5 which the text will be combined into the one cell. However i currently have this set to one specific row 5 (1 activity). I would like this to pick up an array of rows (multiple activities) but the AND function wont let me do a formula with an array. See below formula.
=IF(AND(K25>$D$5,K25<$F$5),$A$5 &" " & $B$5 & " " &$C$5," ")
i have attempted the below but get a #VALUE ! error
=IF(AND(K25>$D5:$D8,K25<$F5:$F8),$A5:$A8 &" " & $B5:$B8 & " " &$C5:$C8," ")
Is there a way around this?
Thanks