Summarize Range Without Blanks, ""

Alriemer

Board Regular
Joined
Aug 18, 2002
Messages
102
Good evening,

I am trying to summarize a range which includes blank cells, cells with text and cells with the formula result: "". I want to return only the cells with text in an adascent column.

I am working with an array formula developed by Chip Pearson - see http://www.cpearson.com/excel/noblanks.htm

Here is the formula:

=IF(ROW()-ROW(NoBlanksRange)+1>ROWS(Movers)-(COUNTBLANK(Movers)),"",INDIRECT(ADDRESS(SMALL(
(IF(Movers<>"",ROW(Movers),ROW()+ROWS(Movers))),
ROW()-ROW(NoBlanksRange)+1),COLUMN(Movers),4)))

This is array-entered in a range the same size as the source range. In my case, the data is found in Movers and the output in NoBlanksRange; the rest #N/A.

This formula is fooled, and I only get back the first result - in both the first cell of NoBlanksRange and the last. I tried to modify it as follows:

=IF(ROW()-ROW(NoBlanksRange)+1>ROWS(Movers)-(COUNTIF(Movers,"")+COUNTBLANK(Movers)),"",INDIRECT(ADDRESS(SMALL(
(IF(Movers<>"",ROW(Movers),ROW()+ROWS(Movers))),
ROW()-ROW(NoBlanksRange)+1),COLUMN(Movers),4)))

but then it only returned "" values. Any suggestions?

Much obliged,
Alriemer
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Aladin,

Unfortunately the formula approach is necessary here; the data has to be passed on to a nice printable output page. Your prior post is helpful.

THanks,
Alriemer
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

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