Computing when a product was introduced

lmarkowi

New Member
Joined
Apr 5, 2006
Messages
29
I have a list of different products (3000) going down column A.

Then going across I have periods 1-60.

The data are sales figures(see below example)

I need to figure out which period each product was introduced in. I was thinking an HLookup, but couldnt get it to work.

The ultimate goal is to get an average sales number after the first time the sales figures show up. There are periods after a product is introduced where 0 sales occur and I would like to include those in the average.

Period 1 2 3 4 5 6
Product
A 0 0 0 5 0 0
B 2 0 0 2 0 0
C 0 0 0 0 0 10


For I want to know for product A that it was introduced in period 4, and the average is 1.6 sales per year (5/3).

Any ideas of how I could accomplish this goal?

thanks everyone.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
I have a list of different products (3000) going down column A.

Then going across I have periods 1-60.

The data are sales figures(see below example)

I need to figure out which period each product was introduced in. I was thinking an HLookup, but couldnt get it to work.

The ultimate goal is to get an average sales number after the first time the sales figures show up. There are periods after a product is introduced where 0 sales occur and I would like to include those in the average.

Period 1 2 3 4 5 6
Product
A 0 0 0 5 0 0
B 2 0 0 2 0 0
C 0 0 0 0 0 10


For I want to know for product A that it was introduced in period 4, and the average is 1.6 sales per year (5/3).

Any ideas of how I could accomplish this goal?

thanks everyone.

To determine the period a product is "introduced"...

=INDEX($A$1:$H$1,MATCH(TRUE,A2:H2 > 0,0))

which needs to be confirmed with control+shift+enter, not just with enter.

Why is the average 1.6 (that is, 5/3)?
 

lmarkowi

New Member
Joined
Apr 5, 2006
Messages
29
5/3

because we want to include in the average every period after the introduction of the product even if no sales were registered.


Thanks for your help;
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
Re: 5/3

because we want to include in the average every period after the introduction of the product even if no sales were registered.


Thanks for your help;
Book2
ABCDEFGHI
1Period
2Product123456IntroAvg
3A00050041.666667
4B20020010.666667
5C0000010610
6
Sheet1


H3:

=INDEX($B$2:$G$2,MATCH(TRUE,B3:G3>0,0))

which you need to confirm with control+shift+enter (not just with enter) and copied down.

I3, copied down:

=AVERAGE(INDEX(B3:G3,H3):INDEX(B3:G3,MATCH(9.99999999999999E+307,B3:G3)))
 

Forum statistics

Threads
1,141,924
Messages
5,709,369
Members
421,632
Latest member
BrennieB

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
Top