Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default sumif with 2 criteria

Trying to do a formula as follows:

Sheet1 Sheet2
Account # Monthly YTD Account # Code YTD
510000 5,000.00 15,000.00 510000 Expense $50,000.00

Formula not working:
=SUM(IF(((B4='Account Type'!C291)*(Input!B291="A")),Input!H291,""))

So, if Sheet1 Account # = Sheet2 Account # and Sheet2 Code = Expense, then
give me the sum of Sheet1 YTD

This seems simple, but I am getting hung up somewhere. Please help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default sumif with 2 criteria

why do you need SUM when there is only one field. Use

=IF(AND(B4='Account Type'!C291,Input!B291="A"),Input!H291,"")


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"sumif and" <sumif wrote in message
...
Trying to do a formula as follows:

Sheet1 Sheet2
Account # Monthly YTD Account # Code YTD
510000 5,000.00 15,000.00 510000 Expense
$50,000.00

Formula not working:
=SUM(IF(((B4='Account Type'!C291)*(Input!B291="A")),Input!H291,""))

So, if Sheet1 Account # = Sheet2 Account # and Sheet2 Code = Expense, then
give me the sum of Sheet1 YTD

This seems simple, but I am getting hung up somewhere. Please help!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default sumif with 2 criteria

Well....it is a bit more complicated that this, because on Sheet1 I may have
multiple rows in which it finds 510000, so I am going to have to sum all hits
of that account.

I'll try it.....

"Bob Phillips" wrote:

why do you need SUM when there is only one field. Use

=IF(AND(B4='Account Type'!C291,Input!B291="A"),Input!H291,"")


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"sumif and" <sumif wrote in message
...
Trying to do a formula as follows:

Sheet1 Sheet2
Account # Monthly YTD Account # Code YTD
510000 5,000.00 15,000.00 510000 Expense
$50,000.00

Formula not working:
=SUM(IF(((B4='Account Type'!C291)*(Input!B291="A")),Input!H291,""))

So, if Sheet1 Account # = Sheet2 Account # and Sheet2 Code = Expense, then
give me the sum of Sheet1 YTD

This seems simple, but I am getting hung up somewhere. Please help!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default sumif with 2 criteria


Which is Sheet1, the one with B4, 'Account Type', or 'Input'? If you have
510000 in one test you must have 510000 in the others.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"sumif and" wrote in message
...
Well....it is a bit more complicated that this, because on Sheet1 I may
have
multiple rows in which it finds 510000, so I am going to have to sum all
hits
of that account.

I'll try it.....

"Bob Phillips" wrote:

why do you need SUM when there is only one field. Use

=IF(AND(B4='Account Type'!C291,Input!B291="A"),Input!H291,"")


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"sumif and" <sumif wrote in message
...
Trying to do a formula as follows:

Sheet1 Sheet2
Account # Monthly YTD Account # Code
YTD
510000 5,000.00 15,000.00 510000 Expense
$50,000.00

Formula not working:
=SUM(IF(((B4='Account Type'!C291)*(Input!B291="A")),Input!H291,""))

So, if Sheet1 Account # = Sheet2 Account # and Sheet2 Code = Expense,
then
give me the sum of Sheet1 YTD

This seems simple, but I am getting hung up somewhere. Please help!






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
Sumif with two Criteria Rob Excel Worksheet Functions 3 December 2nd 06 09:35 PM
SUMIF with two criteria brodiemac Excel Discussion (Misc queries) 3 August 9th 05 05:04 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
Sumif() with criteria Jim May Excel Worksheet Functions 4 February 18th 05 02:29 PM
sumif 2 criteria Doug Excel Worksheet Functions 1 October 27th 04 05:06 PM


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