Sequential numbers between two cell values

freshgoblinmilk

New Member
Joined
Nov 7, 2022
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hi all. I have two tabs with same layout as shown here:

Screenshot_1.png


The first tab is named "SEQUENCE" and is nice and neat , where the "Start" figure is the previous "End" figure + 1.
The second tab is named "BESPOKE" and is where the customer has chosen specific "start" and "end" figures.

The issue I have is that I need to make sure that none of the figures are repeated, as they are serial numbers being entered on a program. If a number has two entries the program gets confused and kicks out a bunch of errors before crashing.

1) I was thinking a conditional formatting where "if values between BESPOKE D?-E? are shown between anything in SEQUENCE D-E, highlight the row red" but I have no idea if that's even possible.

2) So my next thought was to (in column K) autofill sequential numbers from D to E on both tabs, then do a conditional formatting where "If a figure in BESPOKE K matches a figure in SEQUENCE K, highlight the affected rows red". But then I realised I have no idea how to do that either.

Does anyone have any ideas? I am hoping to avoid macros but will if there's no other way.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
MrExcelPlayground13.xlsx
BCDEFGHIJ
1Sequence SheetBespoke Sheet
2SESE
39300100991100011500
410100101091011010500
510110105091096710972
61051010909
71091010929
81093010949
91095010969
101097010989
Sheet21
Cell Formulas
RangeFormula
B4:B10B4=C3+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:C10Expression=SUM(($C3>=$I$3:$I$5)*($B3<=$J$3:$J$5))>0textNO
 
Upvote 0
MrExcelPlayground13.xlsx
BCDEFGHIJ
1Sequence SheetBespoke Sheet
2SESE
39300100991100011500
410100101091011010500
510110105091096710972
61051010909
71091010929
81093010949
91095010969
101097010989
Sheet21
Cell Formulas
RangeFormula
B4:B10B4=C3+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:C10Expression=SUM(($C3>=$I$3:$I$5)*($B3<=$J$3:$J$5))>0textNO

Thank you, this works perfectly. You have saved me a massive headache
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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