Countif to count only increasing cells

mottyb

New Member
Joined
Oct 20, 2021
Messages
8
Office Version
  1. 2013
On a long list, I'm trying to count only cells that are higher than the cell above it. (making a formula for every cell (B1>A1) wouldn't work).
On a 'Daily sales' list, I would like to see how many days the sales increased compared to the day before.
Same goes the opposite way, I would like to see how many days the sales decreased compared to the day before.
Your help is greatly appreciated
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Is that what you want

Book3
AB
1SalesCount
210
320
430
512
640
750
860
915
10
Sheet1
Cell Formulas
RangeFormula
B2:B9B2=COUNTIF($A$1:A2,">"&A2)
 
Upvote 0
Hi & welcome to MrExcel.
Another option
+Fluff 1.xlsm
AB
1
216
32
43
51
65
76
84
97
107
117
129
Main
Cell Formulas
RangeFormula
B2B2=SUMPRODUCT(--(A3:A100>A2:A99))
 
Upvote 0
Solution
A concise example would be very useful.
N.B. You can post an extract of your information with the forum's tool XL2BB.

Consider the following:

SumProduct 2020.xlsm
ABCDEFG
1182225303150
2222520323365
32515
43340Increased5
53540Decreased1
65540
75660Increased5
8Decreased2
9
8b
Cell Formulas
RangeFormula
G4G4=SUMPRODUCT(--(A2:F2>A1:F1))
G5G5=COUNT(A1:F1)-G4
G7G7=SUMPRODUCT(--(B1:B7>A1:A7))
G8G8=COUNT(A1:A7)-G7
 
Upvote 0
Below is a list of weekly sales, I want a count of how many weeks sales went up and how many weeks sales went down.
Thanks

1634762247861.png
 
Upvote 0
Upvote 0
Thanks, but still not what I need.
I'm looking for a single count of the total increasing weeks and total of decreasing weeks we have.
Thanks so much
 
Upvote 0
compared to last week's sales
Sample.xlsx
AB
1Week NumberSales amount
21$ 264,890.25
32$ 264,565.21
43$ 180,784.51
54$ 73,402.25
65$ 109,580.24
76$ 272,239.00
87$ 307,884.26
98$ 401,661.80
109$ 228,326.28
1110$ 196,338.96
1211$ 364,501.48
1312$ 292,169.52
1413$ 307,309.22
1514$ 238.56
1615$ 120,829.28
1716$ 119,405.40
1817$ 182,721.89
1918$ 81,473.25
2019$ 356,614.73
2120$ 310,232.23
2221$ 149,445.19
2322$ 82,191.90
2423$ 161,630.32
2524$ 71,710.67
2625$ 197,350.25
2726$ 95,565.01
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,020
Members
452,542
Latest member
Bricklin

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