Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jacob
 
Posts: n/a
Default Create a total based on multiple conditions is not giving correct.

following instructions copied from microsoft excel giving result as #value
when applied. Please help me.
Create a total based on multiple conditions
Use the following formula to calculate the total value of cells F5:F25,
where B5:B25 contains "Northwind" and the range C5:C25 contains the region
name "Western".

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

To calculate the total value of cells F5:F25, where B5:B25 contains either
"Northwind" or "Terra Firm", use the following formula.

=SUM(IF((B5:B25="Northwind")+(B5:B25="Terra Firm"),F5:F25))

Both of these formulas are array formulas and must be entered by pressing
CTRL+SHIFT+ENTER. Learn about array formulas.


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Works for me, are you sure you entered it correctly with
ctrl + shift & enter? I prefer this more elegant solution

=SUMPRODUCT((B5:B25={"Northwind","Terra Firm"})*(F5:F25))

entered normally

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Jacob" wrote in message
...
following instructions copied from microsoft excel giving result as #value
when applied. Please help me.
Create a total based on multiple conditions
Use the following formula to calculate the total value of cells F5:F25,
where B5:B25 contains "Northwind" and the range C5:C25 contains the region
name "Western".

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

To calculate the total value of cells F5:F25, where B5:B25 contains either
"Northwind" or "Terra Firm", use the following formula.

=SUM(IF((B5:B25="Northwind")+(B5:B25="Terra Firm"),F5:F25))

Both of these formulas are array formulas and must be entered by pressing
CTRL+SHIFT+ENTER. Learn about array formulas.




  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

The formulas are correct and will work but you must enter
them with the key combination of CTRL,SHIFT,ENTER.

Don't just hit ENTER. Hold down the CTRL key and the SHIFT
key and then hit ENTER.

You can rewrite that formula as:(also an array)

=SUM((B5:B15="NORTHWIND")*(C5:C15="WESTERN")*(F5:F 15))

Or, even better:(not an array)

=SUMPRODUCT(--(B5:B15="NORTHWIND"),--
(C5:C15="WESTERN"),F5:F15)

Biff

-----Original Message-----
following instructions copied from microsoft excel giving

result as #value
when applied. Please help me.
Create a total based on multiple conditions
Use the following formula to calculate the total value of

cells F5:F25,
where B5:B25 contains "Northwind" and the range C5:C25

contains the region
name "Western".

=SUM(IF((B5:B25="Northwind")*(C5:C25="Western"),F 5:F25))

To calculate the total value of cells F5:F25, where

B5:B25 contains either
"Northwind" or "Terra Firm", use the following formula.

=SUM(IF((B5:B25="Northwind")+(B5:B25="Terra

Firm"),F5:F25))

Both of these formulas are array formulas and must be

entered by pressing
CTRL+SHIFT+ENTER. Learn about array formulas.


.

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
Summarize data with multiple conditions OkieViking Excel Discussion (Misc queries) 1 December 16th 04 09:17 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM
HOW DO I CREATE MULTIPLE CURRENCY ERIC BROWN Excel Worksheet Functions 3 November 2nd 04 08:55 PM
SUMIF based on 2 conditions TimH Excel Worksheet Functions 3 October 28th 04 08:18 PM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


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