count problem part 2

V

vipa2000

KL and Sandy Man helped with my first problem, time for my second

A b c d e
120873 50183368 6 blank REL NMAT PRC SETC
120873 50183299 4 blank CLSD PRT NMAT PRC
122873 50185108 3 blank PCNF NMAT PRC SETC
122873 50178522 3 HUDS002277 TECO PCNF PRT NMAT
122873 50147658 5 HUDS003115 REL NMAT PRC SETC

I want to count only those records in column C with a 3 in and where a blank
(null) exists in column D. I have pieced togther the following based on
previous help, but doesn't work. I want the range to equal the contents of a
column because the data will vary on a month by month basis and I want people
to simple paste their data into a sheet and it calculates everthing on a
separate sheet.

=SUMPRODUCT(--(Sheet1!C1="1"),--(LEFT(Sheet1!D1,3)<>"HUD*"))
 
B

Bob Phillips

=SUMPRODUCT(--(Sheet1!C1:C1000=3),--(Sheet1!D1:D1000=""))

--

HTH

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

vipa2000

bob

can i get it to look at a whole column of data. Tried to adapt what you sent
but falls over. Sorry but what do you mean by "remove nothere from the email
address if mailing direct"
 
B

Bob Phillips

Not a whole column, SP doesn't handle that but you can have a much larger
end row, say 30000.

It means that I don't want web crawlers to harvest my email address, so I
disguise it.

--

HTH

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

vipa2000

Bob

used the formla

=SUMPRODUCT(--(Sheet1!C1:C30000=1),--(Sheet1!D1:D30000=""))

and tried to verify the data. I seem to be getting different totals. I am
wondering if it struggling with blank cells or the -- is an issue?

regards

Paul
 
B

Bob Phillips

Are they really blank?

Maybe try

=SUMPRODUCT(--(Sheet1!C1:C30000=1),--(ISBLANK(Sheet1!D1:D30000))

or

=SUMPRODUCT(--(Sheet1!C1:C30000=1),--(TRIM(Sheet1!D1:D30000="")))

--

HTH

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top