Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
=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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
revert formula insertion to old method | Setting up and Configuration of Excel | |||
Simple formula doesn't quite add up | Excel Discussion (Misc queries) | |||
how do I make a formula NOT change when the data range is moved? | Excel Discussion (Misc queries) | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions | |||
Excel 2003 - Formula result shows as 0:00 | Excel Worksheet Functions |