Excel formula to Automatically put series on Patterns

Shinianne

New Member
Joined
Aug 6, 2018
Messages
24
Office Version
  1. 365
Hi,

I'd like to ask help with excel.
Is it possible to detect which comes first?

example:

John smith took his break 3 times a day, how can i identify the first break and the other 2, like is it possible that a formula can Make it like Break 1, Break 2, Break 3?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi Shinianne,

There a few ways to do this but here's one which assume you have the data in time sequence. If I didn't guess near your actual data format then you can copy&paste an example of your data to help.

Book1
ABCD
1NameActionTimeBreaks
2Sarah JonesClocked In8:25 
3Sarah JonesHelp Desk8:27 
4John SmithClocked In8:30 
5John SmithHelp Desk8:32 
6Alf GreenClocked In8:34 
7Alf GreenHelp Desk8:45 
8John SmithBreak11:30Break 1
9Sarah JonesBreak12:22Break 1
10Sarah JonesHelp Desk13:05 
11John SmithBreak13:20Break 2
12Alf GreenBreak14:17Break 1
13John SmithHelp Desk15:15 
14Alf GreenBreak16:09Break 2
15John SmithBreak16:12Break 3
16Sarah JonesClocked Out17:22 
17John SmithClocked Out18:08 
18Alf GreenClocked Out18:22 
Sheet1
Cell Formulas
RangeFormula
D2:D18D2=IF(B2="Break","Break "&COUNTIFS($A$2:$A2,A2,$B$2:$B2,"Break"),"")
 
Upvote 0
OMG! yes it's working thank you so much sir, I greatly appreciate it so much! thank you!
 
Upvote 0
Hi Shinianne,

There a few ways to do this but here's one which assume you have the data in time sequence. If I didn't guess near your actual data format then you can copy&paste an example of your data to help.

Book1
ABCD
1NameActionTimeBreaks
2Sarah JonesClocked In8:25 
3Sarah JonesHelp Desk8:27 
4John SmithClocked In8:30 
5John SmithHelp Desk8:32 
6Alf GreenClocked In8:34 
7Alf GreenHelp Desk8:45 
8John SmithBreak11:30Break 1
9Sarah JonesBreak12:22Break 1
10Sarah JonesHelp Desk13:05 
11John SmithBreak13:20Break 2
12Alf GreenBreak14:17Break 1
13John SmithHelp Desk15:15 
14Alf GreenBreak16:09Break 2
15John SmithBreak16:12Break 3
16Sarah JonesClocked Out17:22 
17John SmithClocked Out18:08 
18Alf GreenClocked Out18:22 
Sheet1
Cell Formulas
RangeFormula
D2:D18D2=IF(B2="Break","Break "&COUNTIFS($A$2:$A2,A2,$B$2:$B2,"Break"),"")

You have resolved my query! thank you so much
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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