% of price drops

loudnoiseman

Board Regular
Joined
Dec 31, 2004
Messages
219
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I'm looking for a way to find the % of times the price drops relative to its previous figure within a range. I thought this might be a SUMPRODUCT method but I'm open to suggestions.

Thanks!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
You can use sumproduct....You just have to offset the range...

Try


=SUMPRODUCT(--(B2:B100 < B1:B99))<?XML:NAMESPACE PREFIX = B1 /><B1:B99))< p>
This gives the count of how many times the price dropped.

99.99 percent sure on my math, but percentage is count/total
So that was 100 cells (B1 to B100) so

=SUMPRODUCT(--(B2:B100 < B1:B99))/100<B1:B99))< p>

</B1:B99))<><B1:B99)) p 100<>
Hope that helps.
</B1:B99))></B1:B99))<>
 
Upvote 0
The denominator would be 99, would it not?
 
Upvote 0
Perfect!!!
I adapted your formula to: SUMPRODUCT(--(B3:B400 < B2:B399))/COUNT(B:B)
thanks jonmo1
 
Upvote 0
If there were two prices, how many times could it change?

The denominator should be one less than the number of prices that appear.
 
Upvote 0
shg is absolutely correct..
Fallling back on my 99.99% sure of the math part...

So try

SUMPRODUCT(--(B3:B400 < B2:B399))/(COUNT(B:B)-1)

This is assuming there are no numbers in B1 B2 or beyond B400
probably more accurate to use

SUMPRODUCT(--(B3:B400 < B2:B399))/(COUNT(B2:B400)-1)
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,345
Members
452,907
Latest member
Roland Deschain

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