#1   Report Post  
Posted to microsoft.public.excel.misc
John
 
Posts: n/a
Default If Statement?

I am trying to avoid using a pivot table, but i might find that i need have
to use one. I have a list of names and a list of account types they opened.
The name might open up multiple accounts during the day. I want to create a
list (in another work book) that adds up the bankers specific total of
accounts that day. Example

Date Banker Account
1/1 Joe Checking
1/1 Sally Saving
1/1 Joe Savings

So i want to add up all the savings accounts opened by joe. I think I need
to do an "and" statement, but each time i do that, it comes back "TRUE" Is
there a way to do an "AND" statement and a "COUNTIF" statement?
  #2   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default If Statement?

One way:

=SUMPRODUCT(--(B2:B1000="Joe"),--(C2:C1000="Savings"))

Note that the account type should be Saving or Savings, but not both,
for most efficient calculation.

In article ,
"John" wrote:

I am trying to avoid using a pivot table, but i might find that i need have
to use one. I have a list of names and a list of account types they opened.
The name might open up multiple accounts during the day. I want to create a
list (in another work book) that adds up the bankers specific total of
accounts that day. Example

Date Banker Account
1/1 Joe Checking
1/1 Sally Saving
1/1 Joe Savings

So i want to add up all the savings accounts opened by joe. I think I need
to do an "and" statement, but each time i do that, it comes back "TRUE" Is
there a way to do an "AND" statement and a "COUNTIF" statement?

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
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
IF Statement problem trixma New Users to Excel 3 September 27th 05 06:36 AM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM


All times are GMT +1. The time now is 05:46 PM.

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"