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!

[TABLE="width: 516"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Sequential Number[/TD]
[TD]Item Description[/TD]
[TD]Item Sku[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]NW Pacific Oak Chair[/TD]
[TD]NWP-O-Chair[/TD]
[TD]5.75[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Chiffon[/TD]
[TD]NWP-O-Chair-Chiff[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Champagne[/TD]
[TD]NWP-O-Chair-Cham[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Spindle[/TD]
[TD]NWP-O-Chair-Spin[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cinder[/TD]
[TD]NWP-O-Chair-Cin[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]NW Pacific Hickory Chair[/TD]
[TD]NWP-H-Chair[/TD]
[TD]6.25[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Wool Hickory
[/TD]
[TD]NWP-H-Chair-WH[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Butternut Hickory[/TD]
[TD]NWP-H-Chair-BH[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]NW Pacific Oak Chair Leg[/TD]
[TD]NWP-H-Chair-Leg[/TD]
[TD]3.75[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]NW Pacific Maple Chair Back[/TD]
[TD]NWP-H-Chair-Back[/TD]
[TD]10.35[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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
*
*
*
*
*
*

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:131px;"><col style="width:54px;"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="align: center"]Sequential Number[/TD]
[TD="align: right"]Price[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: right"]5.75[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]6.25[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: center"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: center"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]3.75[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]10.35[/TD]

</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,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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