LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to make SUMPRODUCT work over range that includes text?

I have a column of text labels, with subtotals denoted by "TOTAL", and a
corresponding column of amounts. However, the latter includes some B-cells
with text, but none where the corresponding A-cell is "TOTAL".

I would like to write:

=SUMPRODUCT(EXACT(A1:A54,"TOTAL")*B1:B54)

to sum the subtotals. But the text in some B-cells causes a #VALUE error.
I tried:

=SUMPRODUCT(EXACT(A1:A54,"TOTAL")*N(B1:B54))

to no avail; the result is zero. I also tried:

=SUMPRODUCT(EXACT(A1:A54,"TOTAL")*IF(ISNUMBER(B1:B 54),B1:B54))

That, too, results in zero. So far, the only thing that works is the array
formula:

=SUM(EXACT(A1:A54,"TOTAL")*IF(ISNUMBER(B1:B54),B1: B54))

But I was hoping to avoid an array formula by using SUMPRODUCT.

Is there a non-array formula solution?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-filter includes too much range Atreides Excel Discussion (Misc queries) 4 May 15th 08 01:23 AM
Find most recent value in data range that includes SUM formulas RPage@SF Excel Worksheet Functions 6 May 13th 08 06:05 PM
How do I make this work? =IF(C11=TEXT,D11,D11-C11)*24 Me Excel Worksheet Functions 3 October 24th 07 12:48 AM
=max(range includes #N/As) David Excel Worksheet Functions 3 September 14th 05 05:00 PM
How do I sum a range which includes the "#N/A" VLOOKUP return valu Sailor Excel Worksheet Functions 6 May 9th 05 08:46 AM


All times are GMT +1. The time now is 08:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"