Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sh0t2bts
 
Posts: n/a
Default isnumber with sumproduct

Hi

I have a am trying to count occurrences of someone entering data into my
table.
The below function counts every occurrence where Maximo A2 to A1398 =
SFlintstone and the first two characters in column D are
OS.=SUMPRODUCT((Maximo!$D$2:$D$1398=$B4)*(1*(LEFT( Maximo!$A$2:$A$1398,2)="OS
")))

I now want to make the same match but where character 2 to 4 are numbers in
column D
This function will bring back if the column is not blank but it counts
characters as well as numbers.
=SUMPRODUCT((Maximo!$D$2:$D$1398=$B4)*(1*(MID(Maxi mo!$A$2:$A$1398,2,4)"0"))
)


The data in column D is as follows:-
E1254D
A0120Z
BAY102
RM2893
OS353

what I want to do is return 2 as only the first two entries match my
requirements


Hopefully this makes sense

Many Thanks

Mark


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Give this a try

=SUMPRODUCT(--(Maximo!$D$2:$D$1398=$B4),--(ISNUMBER(--MID(Maximo!$A$2:$A$130
9,2,4))))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sh0t2bts" wrote in message
...
Hi

I have a am trying to count occurrences of someone entering data into my
table.
The below function counts every occurrence where Maximo A2 to A1398 =
SFlintstone and the first two characters in column D are

OS.=SUMPRODUCT((Maximo!$D$2:$D$1398=$B4)*(1*(LEFT( Maximo!$A$2:$A$1398,2)="OS
")))

I now want to make the same match but where character 2 to 4 are numbers

in
column D
This function will bring back if the column is not blank but it counts
characters as well as numbers.

=SUMPRODUCT((Maximo!$D$2:$D$1398=$B4)*(1*(MID(Maxi mo!$A$2:$A$1398,2,4)"0"))
)


The data in column D is as follows:-
E1254D
A0120Z
BAY102
RM2893
OS353

what I want to do is return 2 as only the first two entries match my
requirements


Hopefully this makes sense

Many Thanks

Mark




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
Sumproduct ... Empty Cells vs Spaces? Ken Excel Discussion (Misc queries) 9 December 17th 04 09:03 PM
Multiple SumProduct conditions wal50 Excel Worksheet Functions 3 November 23rd 04 11:48 PM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 10:08 PM
Sumproduct in Excel Spreadsheet to read Access db table Jules Excel Worksheet Functions 1 November 9th 04 03:50 PM
SUMPRODUCT using offset from ROW if X marks the spot The Shaffer s Excel Worksheet Functions 3 November 2nd 04 07:14 AM


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