Write down consecutive number in one row

stubravi

New Member
Joined
Jan 3, 2024
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Is there a quick way(formula/macro) to write down the consecutive numbers in a single row.
Example:

I have numbers in 2 columns like this:
1 2
2 6
6 9
11 17
17 32
34 38
38 44
44 52


The output I want:

1 9
11 32
34 52

Kindly suggest!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to the MrExcel forum!

Try:

Book1
ABCDE
1StartEndStartEnd
21219
3261132
4693452
51117  
61732  
73438  
83844  
94452  
10
Sheet2
Cell Formulas
RangeFormula
D2:D9D2=IFERROR(AGGREGATE(15,6,A$2:A$21/(B$1:B$20<>A$2:A$21)/(A$2:A$21<>""),ROWS(D$2:D2)),"")
E2:E9E2=IFERROR(AGGREGATE(15,6,B$1:B$20/(B$1:B$20<>A$2:A$21)/(B$1:B$20<>""),ROWS(D$2:D2)),"")
 
Upvote 1
Solution

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

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