Using a range of numbers in COUNT-SUMIF(INDIRECT formulas

ironsides

Well-known Member
Joined
Aug 12, 2002
Messages
575
=COUNTIF(INDIRECT("$AP19:$AP$9999"&$A$1),"9")

=SUMIF(INDIRECT("$AP$19:$AP$9999"&$A$1),"9",$BD$19:$BD$9999)

I am using these formulas successfully
but now I want to change the 9 to the range of 1:9

I tried several variations of the above, but to no avail.

thanks
Ironsides
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Sorry Aladin

=HYPERLINK("http://www.nasdaq.com/symbol/"&E5536,$A$15) is in cell A19 which starts my data

Cell A1 is blank
 
Upvote 0
Sorry Aladin

=HYPERLINK("http://www.nasdaq.com/symbol/"&E5536,$A$15) is in cell A19 which starts my data

Cell A1 is blank

Thus no need for a concatenate action!..

You say that you use:

=COUNTIF(INDIRECT("$AP19:$AP$9999"$A$1),"9")

successfully. Perhaps I'm missing something, but what does that mean? I mean how is this formula supposed to work?
 
Upvote 0
Col AP from lines 19 downward contains numbers from 0 to 500 not in order.
The current COUNT formula, =COUNTIF(INDIRECT("$AP19:$AP$9999"$A$1),"9")
successfully searches col AP , extracts the specified number 9, counts them
and places the answer in a separate chart

The current SUM formula, =SUMIF(INDIRECT("$AP$19:$AP$9999"&$A$1),"9",$BD$19:$BD$9999)
successfully searches Col AP for the number 9, and then, in col BD, searches each dollar amount
that corresponds to the number 9 in col AP, and places the answer in that same chart.

Since I have 500 different numbers in a sheet 5000 lines deep, of which 0 to 10 is prevalent, I need to have groups such as 11 thu 20 and 21 thru 30 etc
otherwise the chart would be too big.

Thanks Aladin

Matt
 
Upvote 0
Hard to follow...

Suppose we have the following:

AP19 >> 5
AP20 >> 9
AP21 >> 19
AP21 >> 99

What would be the count result regarding "9"?
 
Upvote 0
If this is what you're asking me

AP # Cost Current Net roi
0 640 28,211 35,714 7504 0.266
1 398 9,206 10,738 1532 0.166
2 256 5,943 7,965 2022 0.340
3 247 6,721 8,706 1985 0.295
4 191 4,825 5,945 1120 0.232
5 173 4,087 5,164 1076 0.263
6 144 3,903 4,212 309 0.079
7 124 3,051 3,992 941 0.308
8 118 2,960 4,212 1252 0.423
9 99 2,652 2,908 256 0.097
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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