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


IN CELL B28 This formula returns the sum of a range of cells that contain
data that starts with a number, such as 1a15, 2a15, 3a15, 1b15, 2b15, etc.

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))))

Problem is that there is one type of data that starts with a number that I
do not want counted in the sum. It is "1desk".

How can this formula be changed so as to perform my request.
Thank You
Brian
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))),--('Patrol
Log'!A22:A43<"1desk"))



In article ,
"Brian" wrote:

IN CELL B28 This formula returns the sum of a range of cells that contain
data that starts with a number, such as 1a15, 2a15, 3a15, 1b15, 2b15, etc.

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))))

Problem is that there is one type of data that starts with a number that I
do not want counted in the sum. It is "1desk".

How can this formula be changed so as to perform my request.
Thank You
Brian

  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Brian,

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))))-COUNTIF('Patrol
Log'!A22:A43,"1desk")

HTH,
Bernie
MS Excel MVP

"Brian" wrote in message
...

IN CELL B28 This formula returns the sum of a range of cells that contain
data that starts with a number, such as 1a15, 2a15, 3a15, 1b15, 2b15, etc.

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))))

Problem is that there is one type of data that starts with a number that I
do not want counted in the sum. It is "1desk".

How can this formula be changed so as to perform my request.
Thank You
Brian



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

How about?

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))))-COUNTIF('Patrol
Log'!A22:A43,"1desk")

Another way

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol
Log'!A22:A43,1))),--(ISERROR(FIND("1desk",'Patrol Log'!A22:A43))))

Best Regards,

Peo Sjoblom



"Brian" wrote:


IN CELL B28 This formula returns the sum of a range of cells that contain
data that starts with a number, such as 1a15, 2a15, 3a15, 1b15, 2b15, etc.

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))))

Problem is that there is one type of data that starts with a number that I
do not want counted in the sum. It is "1desk".

How can this formula be changed so as to perform my request.
Thank You
Brian

  #6   Report Post  
Jason Morin
 
Posts: n/a
Default

=SUMPRODUCT(LEFT('Patrol Log'!A22:A44)*ISERROR(SEARCH
("desk",'Patrol Log'!A22:A44)))

HTH
Jason
Atlanta, GA

-----Original Message-----

IN CELL B28 This formula returns the sum of a range of

cells that contain
data that starts with a number, such as 1a15, 2a15,

3a15, 1b15, 2b15, etc.

=SUMPRODUCT(--(ISNUMBER(-LEFT('Patrol Log'!A22:A43,1))))

Problem is that there is one type of data that starts

with a number that I
do not want counted in the sum. It is "1desk".

How can this formula be changed so as to perform my

request.
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
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


All times are GMT +1. The time now is 05:27 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"