Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Numbering different products

I need to number random conditions as they occur in a column. The example
show is in its simplest form.

Column A is a list of colors that are selected randomly. Column B needs to
be the order in which the color code was selected relative to equivalent
colors.
So the first €œred€ selected will be €œRed-1, next €œred€ selected will be
€œRed-2€. This will happen to for each color. i.e€¦€¦€¦..

A B
1 red 1 1
2 blue 1 1
3 red 2 2
4 red 3 3
5 white 1 1
6 blue 2 2

When the order changes I want the spread to adjust accordingly.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default Numbering different products


With your posted data in B5:B10, use this formula in C5 and fill down...
=COUNTIF($B$5:B5,B5)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Manos"
wrote in message
I need to number random conditions as they occur in a column. The example
show is in its simplest form.
Column A is a list of colors that are selected randomly. Column B needs to
be the order in which the color code was selected relative to equivalent colors.
So the first €œred€ selected will be €œRed-1, next €œred€ selected will be
€œRed-2€. This will happen to for each color. i.e€¦€¦€¦..

A B
1 red 1 1
2 blue 1 1
3 red 2 2
4 red 3 3
5 white 1 1
6 blue 2 2

When the order changes I want the spread to adjust accordingly.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Numbering different products

No i do not want this
I need to show in line 3 that red is appeared as twice
in line 4 to show that red appeared as third time and show on....


"Jim Cone" wrote:


With your posted data in B5:B10, use this formula in C5 and fill down...
=COUNTIF($B$5:B5,B5)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Manos"
wrote in message
I need to number random conditions as they occur in a column. The example
show is in its simplest form.
Column A is a list of colors that are selected randomly. Column B needs to
be the order in which the color code was selected relative to equivalent colors.
So the first €œred€ selected will be €œRed-1, next €œred€ selected will be
€œRed-2€. This will happen to for each color. i.e€¦€¦€¦..

A B
1 red 1 1
2 blue 1 1
3 red 2 2
4 red 3 3
5 white 1 1
6 blue 2 2

When the order changes I want the spread to adjust accordingly.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default Numbering different products


That is exactly what it does.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Manos"
wrote in message
No i do not want this
I need to show in line 3 that red is appeared as twice
in line 4 to show that red appeared as third time and show on....

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Numbering different products

That is exactly what the formula Jim provided does.
Are you sure that you are using line numbers corresponding to your data
range, and are you sure that you've got the right combination of absolute
and relative addressing as Jim had?
--
David Biddulph

"Manos" wrote in message
...
No i do not want this
I need to show in line 3 that red is appeared as twice
in line 4 to show that red appeared as third time and show on....


"Jim Cone" wrote:

With your posted data in B5:B10, use this formula in C5 and fill down...
=COUNTIF($B$5:B5,B5)


"Manos"
wrote in message
I need to number random conditions as they occur in a column. The
example
show is in its simplest form.
Column A is a list of colors that are selected randomly. Column B needs
to
be the order in which the color code was selected relative to equivalent
colors.
So the first "red" selected will be "Red-1, next "red" selected will be
"Red-2". This will happen to for each color. i.e.....

A B
1 red 1 1
2 blue 1 1
3 red 2 2
4 red 3 3
5 white 1 1
6 blue 2 2

When the order changes I want the spread to adjust accordingly.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PO with sequential numbering with start / end numbering [email protected] Excel Discussion (Misc queries) 1 April 24th 07 03:38 PM
Adding Products carsch Excel Worksheet Functions 1 April 28th 06 05:06 AM
Products Gene Excel Worksheet Functions 1 April 21st 05 12:06 AM
Sum the products of a formulas Bill Harney Excel Discussion (Misc queries) 2 January 29th 05 06:57 PM
better/faster way than sum products? alex Excel Worksheet Functions 2 November 17th 04 10:56 AM


All times are GMT +1. The time now is 04:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"