Best Way to Sequentially Number Cells

monroe_17

New Member
Joined
Jul 10, 2016
Messages
3
Hello,
This is likely quite easy for a super user, I have forgotten how to speak Excel :-/.
My question. I'm formatting some product information to be imported into a new database.
Each product needs its own identifier. Some products have a number of colors, whereas others are only one line item.
So I'm wondering what is the best way to get the result below?
I've tried a COUNTIF formula but it was numbering from the bottom up of the spreadsheet and I couldn't figure out how to fix it.
So I don't know if it needs an anchor or not.
The options I could use involve using the item description (NW Pacific) or perhaps if the item has a value in the price column.
Just wondering what you think the most efficient way would be? And of course what the best formula would be.

Many thanks!

Sequential NumberItem DescriptionItem SkuPrice
1NW Pacific Oak ChairNWP-O-Chair5.75
1ChiffonNWP-O-Chair-Chiff
1ChampagneNWP-O-Chair-Cham
1SpindleNWP-O-Chair-Spin
1CinderNWP-O-Chair-Cin
2NW Pacific Hickory ChairNWP-H-Chair6.25
2Wool Hickory
NWP-H-Chair-WH
2Butternut HickoryNWP-H-Chair-BH
3NW Pacific Oak Chair LegNWP-H-Chair-Leg3.75
4NW Pacific Maple Chair BackNWP-H-Chair-Back10.35

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
So, you want the sequential numbers as per the sample ??
If so, paste this in A3 and drag down
Code:
=IF(D3="",A2,A2+1)

If that's not what you want, please post more info
 
Upvote 0
So, you want the sequential numbers as per the sample ??
If so, paste this in A3 and drag down
Code:
=IF(D3="",A2,A2+1)

If that's not what you want, please post more info


Hi Michael,
Yes - sorry, I do want the sequential numbering as in the sample.
That's great thanks! It looks like I need to have "1" in A2 as an anchor?
So a simple IF true/false kind of thing. Thanks for taking on what is probably way too easy for you!
michelle
 
Upvote 0
You can do it without the anchor if you want.

Excel Workbook
AD
1Sequential NumberPrice
215.75
31
41
51
61
726.25
82
92
1033.75
11410.35
Numbering
 
Last edited:
Upvote 0
You can do it without the anchor if you want.

Numbering

*AD
1Sequential NumberPrice
215.75
31*
41*
51*
61*
726.25
82*
92*
1033.75
11410.35

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:131px;"><col style="width:54px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
A2=N(A1)+(D2<>"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Thanks Peter! I'll try that as well. Oh the many choices. Thanks for taking the time.
 
Upvote 0

Similar threads

Forum statistics

Threads
1,216,031
Messages
6,128,422
Members
449,450
Latest member
gunars

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