Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SUMPRODUCT throwing a #VALUE error when using range instead of single cell

Hi, I have a formula that uses SUMPRODUCT to tally the occurrences of invalid data entered into a column in an Excel Table.

=SUMPRODUCT(1*(OR(AND(ISTEXT($L17),LEN(TRIM($L17)) 0),LEN(LEFT($L17,FIND(".",$L17&".")-1))13)))

The formula is intended to count cells which contain data that is either text (but not just spaces) or is a number and is longer than 13 digits to the left of the decimal point.

The formula above works for a single cell, but when i put in a range (the column in the Excel Table) for the cell address I get a #VALUE error

=SUMPRODUCT(1*(OR(AND(ISTEXT(Standard4[Debit]),LEN(TRIM(Standard4[Debit]))0),LEN(LEFT(Standard4[Debit],FIND(".",Standard4[Debit]&".")-1))13)))

Any ideas?

thanks!

pete

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default SUMPRODUCT throwing a #VALUE error when using range instead of single cell

Hi Pete,

Am Wed, 30 Dec 2015 08:53:52 -0800 (PST) schrieb :

=SUMPRODUCT(1*(OR(AND(ISTEXT(Standard4[Debit]),LEN(TRIM(Standard4[Debit]))0),LEN(LEFT(Standard4[Debit],FIND(".",Standard4[Debit]&".")-1))13)))


try:
=SUMPRODUCT(--(LEN(TRIM(L1:L1000))0)*(L1:L1000=1000000000000))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default SUMPRODUCT throwing a #VALUE error when using range instead ofsingle cell

On Wednesday, December 30, 2015 at 9:10:33 AM UTC-8, Claus Busch wrote:
Hi Pete,

Am Wed, 30 Dec 2015 08:53:52 -0800 (PST) schrieb pete:

=SUMPRODUCT(1*(OR(AND(ISTEXT(Standard4[Debit]),LEN(TRIM(Standard4[Debit]))0),LEN(LEFT(Standard4[Debit],FIND(".",Standard4[Debit]&".")-1))13)))


try:
=SUMPRODUCT(--(LEN(TRIM(L1:L1000))0)*(L1:L1000=1000000000000))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional


Sweet!!!! Thanks Claus!
Reply
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
Formula throwing up an error Gotroots Excel Programming 4 November 26th 09 05:16 PM
Formula throwing up an error JoeU2004 Excel Programming 0 November 25th 09 11:12 PM
EXCEL VBA - Find Method or Range in IE throwing error Malik Excel Programming 3 March 30th 08 05:39 PM
aconcat UDF throwing a #NAME error Josh Rogers Excel Worksheet Functions 10 February 14th 08 07:29 PM
Throwing an error ... on purpose! Sarah B via OfficeKB.com[_2_] Excel Programming 2 June 20th 05 08:21 PM


All times are GMT +1. The time now is 04:44 AM.

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

About Us

"It's about Microsoft Excel"