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
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Alriemer

Board Regular
Joined
Aug 18, 2002
Messages
102
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
 

Watch MrExcel Video

Forum statistics

Threads
1,127,725
Messages
5,626,512
Members
416,187
Latest member
L_D18

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
Top