Forum Discussion
Aaron Fitzgerald
Nov 15, 2017Copper Contributor
IFS function not working
Hello, I recently brought a spreadsheet over to a new laptop and the IFS statements that I had been using are no longer recognized. I get the #NAME? error in all cells that are currently using th...
Wipsupervisor
Copper Contributor
Hi sir,
can you help me with this ifs formula error,
=ifs(BG8>"7:00","LT",BG8>"19:00","LT",BG8<"7:00","P",BG8>"19:00","P")
can you help me with this ifs formula error,
=ifs(BG8>"7:00","LT",BG8>"19:00","LT",BG8<"7:00","P",BG8>"19:00","P")
SergeiBaklan
Oct 15, 2020MVP
That could be
=IFS( (BG8>7/24)*(BG8<19/24),"LT",TRUE,"P")
or
=IF( (BG8>=7/24)*(BG8<=19/24),"LT","P")
In Excel datetime is actually the number their date is integer part and time is decimal one. In days calculation one day is equal to 1, thus one hour is 1/24.
- WipsupervisorOct 15, 2020Copper Contributor
Thanks for your response,
but seems the formula was not meet the condition
15:00 #NAME? =_xlfn.IFS( (BG8>7/24)*(BG8<19/24),"LT",TRUE,"P") LT =IF( (BG8>=7/24)*(BG8<=19/24),"LT","P") - WipsupervisorOct 15, 2020Copper ContributorI think IFs is not supported on my excel work sheet
- SergeiBaklanOct 15, 2020MVP
Yes, it's not supported. For such case simple IF() is even easier.
- WipsupervisorOct 15, 2020Copper Contributori want this kind of formula.
When time is
>7=LT
<7=P
>19=LT
<19=P
Thanks - SergeiBaklanOct 15, 2020MVP
Sorry, I didn't catch the logic. Let say your time is 10. It's >7 (thus LT), but at the same time it's <19 (thus P). What shall be taken?