How to identify repeated and consecutive number?

xoxo

Board Regular
Joined
Mar 29, 2009
Messages
198
excelx001.jpg


E20 with the series of numbers in tenth, and with five numbers on one cell. Between 01-37. How do I write a formula on column R to identify any repeated numbers from E20 with E21? In the chart it shows number 10 is repeated from E21, so I place a check mark on the same row as E20 on column R.

On column S how do I write a formula to identify numbers within E20 to see if there are any consecutive numbers? On E20 there is none, on E21 there is one 10-11, and column S will let me know if there is a consecutive by placing a check mark.

Appreciate any help with this, right now I am manually doing this by hand.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
1st column (I think):

Excel Workbook
EF
2002-10-20-28-32V
2106-10-11-13-240
2207-12-19-23-28V
2307-11-15-16-280
2406-13-22-24-29V
2526-28-29-31-360
Sheet1
 
Upvote 0
Excel Workbook
EFG
2002-10-20-28-32V0
2106-10-11-13-240V
2207-12-19-23-28V0
2307-11-15-16-280V
2406-13-22-24-29V0
2526-28-29-31-360V
Sheet1
 
Upvote 0
xoxo

Why not split the numbers up like we did in your other thread then this task could be achieved with much simpler formulas?

F2 copied across and down.
R20:S20 copied down.

Also, you would get more helpers if your sample data could be easily copied from the board, to save us having to type out sample data. Have you tried Excel jeanie

Excel Workbook
EFGHIJKQRS
19Match belowConsecutive
2002-10-20-28-3221020283210
2106-10-11-13-2461011132401
2207-12-19-23-2871219232810
2307-11-15-16-2871115162801
xoxo
 
Last edited:
Upvote 0
R20 =IF(SUMPRODUCT(--(F20:J20=F21:J21)),1,0)

Ah I didn't realise it was only a match if it occurred in the same "position". That certainly simplifies it (as well as breaking text across columns as you say).
 
Upvote 0
Peter,

The sheet has changed and require repeating number to count both in the same position, and in other positions too. How do I change the formula to fit this new change?

Thanks.
xoxo
 
Upvote 0
Excel Workbook
EFG
2002-10-20-28-32V0
2106-10-11-13-240V
2207-12-19-23-28V0
2307-11-15-16-280V
2406-13-22-24-29V0
2526-28-29-31-360V
Sheet1


When I apply this formula in cell F20, and use conditional formatting to give color to the cell it would not do it. Do you know why? Would help a lot to see colors in the sea of 0 and ?.

xoxo
 
Upvote 0
Peter,

The sheet has changed and require repeating number to count both in the same position, and in other positions too. How do I change the formula to fit this new change?

Thanks.
xoxo
With the same layout as in my example above, does this formula in R20 do what you want?

=IF(SUMPRODUCT(--(ISNUMBER(MATCH(F20:J20,F21:J21,0)))),1,0)
 
Upvote 0
When I apply this formula in cell F20, and use conditional formatting to give color to the cell it would not do it. Do you know why? Would help a lot to see colors in the sea of 0 and √.

xoxo
What exactly are those values/symbols and what Conditional Formatting did you apply?
 
Upvote 0

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

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