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 Trying to check 2 columns for text and add a 3rd col to total

Trying to check 2 columns and if I find "Auto" in column A and "January" in
column C then I want to add the money value in column E to a budget total

Travel Auto Clothing etc
January
February


Espense item
Auto January $50
Travel January $10
Auto February $ 20

Want to get $50 into January Auto, $10 into January Travel and $20 into
February Auto.

I've tried to use the condition given by Excel 2000 help which states that

=SUM(IF((B:B25="Northwind")*(C5:C25="Western"),F5: F25))

and substituted the appropriate columns and text but I only get a #VALUE
error or totals for all the data in the money column rather than just the
selected values.

Also the note says to use CTRL + SHIFT + ENTER before entering the formula
because it's an array selection and I've tryed that and it doesn't help.

When I edit the formula it highlights the proper array of cells but it
doesn't work

Can anyone tell me what I may be doing wrong or suggest another formula that
might accomplish the same thing?

Thanks,
Rick
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Trying to check 2 columns for text and add a 3rd col to total

One way:

=SUMPRODUCT(--(B5:B25="Northwind"),--(C5:C25="Western"),F5:F25)


Also STRONGLY consider using a pivot table...

In article ,
RickR wrote:

Trying to check 2 columns and if I find "Auto" in column A and "January" in
column C then I want to add the money value in column E to a budget total

Travel Auto Clothing etc
January
February


Espense item
Auto January $50
Travel January $10
Auto February $ 20

Want to get $50 into January Auto, $10 into January Travel and $20 into
February Auto.

I've tried to use the condition given by Excel 2000 help which states that

=SUM(IF((B:B25="Northwind")*(C5:C25="Western"),F5: F25))

and substituted the appropriate columns and text but I only get a #VALUE
error or totals for all the data in the money column rather than just the
selected values.

Also the note says to use CTRL + SHIFT + ENTER before entering the formula
because it's an array selection and I've tryed that and it doesn't help.

When I edit the formula it highlights the proper array of cells but it
doesn't work

Can anyone tell me what I may be doing wrong or suggest another formula that
might accomplish the same thing?

Thanks,
Rick

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
Total using 2 columns for criteria Lost in Microbiology Excel Discussion (Misc queries) 3 May 10th 07 03:54 PM
Total column changes colors when total equals sum of other columns newstacy New Users to Excel 1 April 21st 07 09:00 PM
what formula to get total from two different columns Mikeymike Excel Worksheet Functions 2 October 18th 06 06:58 PM
how do i add up 3 columns to get a total dekmag New Users to Excel 5 December 26th 05 08:00 PM
How do I subtract two columns from the same total? Lollycat Excel Discussion (Misc queries) 7 August 26th 05 04:53 PM


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