IFS formula with TIME

Jewells0905

New Member
Joined
Mar 10, 2024
Messages
29
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am having issues getting this to generate, I was getting an error, but am now getting a NAME error. I am trying to generate labels (A,B,C,D) for a group of racers based on their completion time. There are four groups A, B, C, and D with times <=1:45:00, <= 2:00:00, <= 2:15:00, and > 2:15:00, respectively. The formula I am currently using is below. =IFS(C2TIME(1, 45, 0), "A", C2TIME(2, 0, 0), "B", C2TIME(2, 15, 0), "C", "TRUE", C2TIME(2, 15, 0), "D") the racers times are in column C. Any help is appreciated, please let me know if you need more info. I tried to upload a mini sheet and a photo but for some reason, it won't allow me to. Below is a snip of what I am attempting to solve

First NameLast NameTimeTime behind winnerGroupWinning timeAverage timeSlowest time
GeorgeAdams2:16:470:46:44#NAME?1:30:041:59:372:29:04
LuciaAdams1:51:520:21:481:30:041:59:372:29:04
ByronAlexander2:20:000:49:57
AudreyAlexander1:48:500:18:46
OliviaArmstrong2:16:120:46:09
CadieArmstrong1:39:480:09:44
ByronBailey2:03:360:33:33
WalterBaker2:19:220:49:18
LydiaBaker1:39:420:09:39
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDE
1First NameLast NameTimeTime behind winnerGroup
2GeorgeAdams02:16:4700:46:44D
3LuciaAdams01:51:5200:21:48B
4ByronAlexander02:20:0000:49:57D
5AudreyAlexander01:48:5000:18:46B
6OliviaArmstrong02:16:1200:46:09D
7CadieArmstrong01:39:4800:09:44A
8ByronBailey02:03:3600:33:33C
9WalterBaker02:19:2200:49:18D
10LydiaBaker01:39:4200:09:39A
Data
Cell Formulas
RangeFormula
E2:E10E2=IF(C2<=TIME(1, 45, 0), "A",IF(C2<=TIME(2, 0, 0),"B",IF(C2<=TIME(2, 15, 0),"C", "D")))
 
Upvote 0
Solution
=IF(C2<=TIME(1, 45, 0), "A",IF(C2<=TIME(2, 0, 0),"B",IF(C2<=TIME(2, 15, 0),"C", "D")))
Hi,

Thank you so much for your response, that formula did generate the labels I am needing, however, I am required to use the IFS function instead of just the IF function.
 
Upvote 0
It is for a data literacy course I'm taking to learn data analysis.
 
Upvote 0
Personally I don't use the IFS function as it's less efficient than using nested IF functions.
That said, you can just use the construct I showed but using IFS instead
 
Upvote 0
I agree completely about the IF functions being more efficient, I did try to update the formula you provided with the IFS function and am getting an error. I attempted it a couple of different ways just to see if anything would work.=IFS(C3<=TIME(1, 45, 0), "A",IF(C3<=TIME(2, 0, 0),"B",IF(C3<=TIME(2, 15, 0),"C", "D"))) is giving this error ErrorIFS expects all arguments after position 0 to be in pairs. And this formula =IFS(C4<=TIME(1, 45, 0), "A",(C4<=TIME(2, 0, 0),"B",(C4<=TIME(2, 15, 0),"C", "D"))) is giving the parse error.
 
Upvote 0
In the 2nd one remove the ( from before the 2nd & 3rd C4 & add a true part ate the end like the formula you posted.
 
Upvote 0
In the 2nd one remove the ( from before the 2nd & 3rd C4 & add a true part ate the end like the formula you posted.
You are amazing! That worked! I've been trying to get this figured out for about 6 hours! Thank you so much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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