Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
A. Toczko
 
Posts: n/a
Default how to setup formula?

Hello. This is what I want to do:

I want it to look at two columns in a spreadsheet. If Column S=Jane, I want
it to count each time Column D='apple'. So it should only be looking at the
rows where S=Jane. How can this be done? Thanks.


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

=SUMPRODUCT(--(S1:S1000="Jane"),--(D1:D1000="apple"))

For an explanation of "--" see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"A. Toczko" wrote:

Hello. This is what I want to do:

I want it to look at two columns in a spreadsheet. If Column S=Jane, I want
it to count each time Column D='apple'. So it should only be looking at the
rows where S=Jane. How can this be done? Thanks.

  #3   Report Post  
A. Toczko
 
Posts: n/a
Default

If doesn't accept the formula. Where have I gone wrong?

=SUMPRODUCT(--('Data!'$S$2:$S$2000="Jane"),--('Data!'$D$2:$D$2000="apple"))

"JE McGimpsey" wrote in message
...
one way:

=SUMPRODUCT(--(S1:S1000="Jane"),--(D1:D1000="apple"))

For an explanation of "--" see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"A. Toczko" wrote:

Hello. This is what I want to do:

I want it to look at two columns in a spreadsheet. If Column S=Jane, I
want
it to count each time Column D='apple'. So it should only be looking at
the
rows where S=Jane. How can this be done? Thanks.



  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Try removing the single quotes around Data:
=SUMPRODUCT(--(Data!$S$2:$S$2000="Jane"),--(Data!$D$2:$D$2000="apple"))

Or move them
=SUMPRODUCT(--('Data'!$S$2:$S$2000="Jane"),--('Data'!$D$2:$D$2000="apple"))

(excel will remove them if you don't need them--and a worksheet named Data won't
need them.

"A. Toczko" wrote:

If doesn't accept the formula. Where have I gone wrong?

=SUMPRODUCT(--('Data!'$S$2:$S$2000="Jane"),--('Data!'$D$2:$D$2000="apple"))

"JE McGimpsey" wrote in message
...
one way:

=SUMPRODUCT(--(S1:S1000="Jane"),--(D1:D1000="apple"))

For an explanation of "--" see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"A. Toczko" wrote:

Hello. This is what I want to do:

I want it to look at two columns in a spreadsheet. If Column S=Jane, I
want
it to count each time Column D='apple'. So it should only be looking at
the
rows where S=Jane. How can this be done? Thanks.


--

Dave Peterson
  #5   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Put the apostrophe on the other side of the exclaimation point:

'Data'!

You don't need them unless the sheet name contains spaces.

Sheet name = Data = not needed = Data!
Sheet name = Data 1 = needed = 'Data 1'!

Biff

"A. Toczko" wrote in message
...
If doesn't accept the formula. Where have I gone wrong?

=SUMPRODUCT(--('Data!'$S$2:$S$2000="Jane"),--('Data!'$D$2:$D$2000="apple"))

"JE McGimpsey" wrote in message
...
one way:

=SUMPRODUCT(--(S1:S1000="Jane"),--(D1:D1000="apple"))

For an explanation of "--" see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"A. Toczko" wrote:

Hello. This is what I want to do:

I want it to look at two columns in a spreadsheet. If Column S=Jane, I
want
it to count each time Column D='apple'. So it should only be looking at
the
rows where S=Jane. How can this be done? Thanks.







  #6   Report Post  
A. Toczko
 
Posts: n/a
Default

Thanks! I tried removing the apostrophe and it worked. I'll also remember
the placement for other uses as well.

"Biff" wrote in message
...
Hi!

Put the apostrophe on the other side of the exclaimation point:

'Data'!

You don't need them unless the sheet name contains spaces.

Sheet name = Data = not needed = Data!
Sheet name = Data 1 = needed = 'Data 1'!

Biff

"A. Toczko" wrote in message
...
If doesn't accept the formula. Where have I gone wrong?

=SUMPRODUCT(--('Data!'$S$2:$S$2000="Jane"),--('Data!'$D$2:$D$2000="apple"))

"JE McGimpsey" wrote in message
...
one way:

=SUMPRODUCT(--(S1:S1000="Jane"),--(D1:D1000="apple"))

For an explanation of "--" see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"A. Toczko" wrote:

Hello. This is what I want to do:

I want it to look at two columns in a spreadsheet. If Column S=Jane, I
want
it to count each time Column D='apple'. So it should only be looking
at the
rows where S=Jane. How can this be done? Thanks.







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
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
How do I setup a formula for payroll deductions in excel Skeeter Excel Worksheet Functions 1 February 6th 05 09:51 PM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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