Index, return only values

ilcaa

Well-known Member
Joined
May 25, 2005
Messages
751
Office Version
  1. 365
Platform
  1. Windows
hello i have a range that has formulas, and the cells either returns a value or isblank (but has a formula in the cell), the range spans 2500 rows and has about 450 values (from the formula)...

i just want to return the values. If i do isNumber(index(b2:b2500, 0) ) i get a bunch of FALSES and some TRUES (the values). how can i just return a list (array) of the TRUES (the actual values)

tahnks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I'm not sure what version of Office you have (update your account details perhaps?), but it sounds like you have one which allows array formulas.

Does this work for you (and give you want you want)?
a.xlsx
ABCD
1Data1
213
3A0
43111
5033
60f
7111
833
Sheet2
Cell Formulas
RangeFormula
D1:D5D1=FILTER(IF(ISNUMBER(B2:B2500),B2:B2500,""),IF(ISNUMBER(B2:B2500),B2:B2500,"")<>"")
Dynamic array formulas.
 
Upvote 0
thanks, yes i have 365

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Another option is
Excel Formula:
=FILTER(B2:B500,ISNUMBER(B2:B500))
 
Upvote 0
Solution
Another option is
Excel Formula:
=FILTER(B2:B500,ISNUMBER(B2:B500))

i want to count the # of values (numbers), i assumed i could use same logic in countif(), but Countif(b2:b2000, isnumber(b2:b2000)) I get a #Spill! error. i was expecting a scalar. what happened? whats best way? thanks
 
Upvote 0
How about
Excel Formula:
=COUNT(FILTER(B2:B500,ISNUMBER(B2:B500)))
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,784
Members
449,049
Latest member
greyangel23

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