Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brian
 
Posts: n/a
Default sumproduct formula

I get to a certain point and I just can't figure stuff out.

I have this formula:

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!H10:H13,1))))

This is to count cells that have data beginning with a number, however there
is one piece of text that I want included in the sum. "switch". How can I
get this text included in the sum?

Thank You
Brian
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

A couple of ways

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol
Log'!H10:H13,1))+ISNUMBER(SEARCH("switch",'Patrol Log'!H10:H13))0))

if switch is always in one place, if it can be in several locations but you
only want to count those that start the string

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!H10:H13,1))+(LEFT('Patrol
Log'!H10:H13,6)="switch")0))

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Brian" wrote in message
...
I get to a certain point and I just can't figure stuff out.

I have this formula:

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!H10:H13,1))))

This is to count cells that have data beginning with a number, however
there
is one piece of text that I want included in the sum. "switch". How can
I
get this text included in the sum?

Thank You
Brian



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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Shorten sumproduct formula Andre Croteau Excel Discussion (Misc queries) 1 December 11th 04 10:30 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM
SUMPRODUCT using offset from ROW if X marks the spot The Shaffer s Excel Worksheet Functions 3 November 2nd 04 06:14 AM


All times are GMT +1. The time now is 01:50 PM.

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"