#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default if statement

I'm trying to create a formula for the following:

If C3 - C2233 = WW and
If AA3 - AA2233 = 1
than add column EW3 - EW 2233

Can someone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default if statement

try
=if(and(C3-C2233=WW,AA3-AA2233=1),Sum(EW3:EW2233),"otherwise")

unless you mean to only add the values in Column EW when the values in
column C and column AA are appropriate
in this case try
=sumproduct(--(C3:C2233=WW),--(AA3:AA2233=1),EW3:EW2233)

"Karen Smith" wrote:

I'm trying to create a formula for the following:

If C3 - C2233 = WW and
If AA3 - AA2233 = 1
than add column EW3 - EW 2233

Can someone help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default if statement

I am only adding the values in Column EW when the values in column C and
column AA are appropriate. Here's the formula I used, but my answer = 0 and
it should have a number in it. What am I doing wrong?

=SUMPRODUCT(--('Master List'!$C$3:$C$2233="ag"),--('Master
List'!$AA$3:$AA$2233="1"),'Master List'!$EW$3:$EW$2233)

"bj" wrote:

try
=if(and(C3-C2233=WW,AA3-AA2233=1),Sum(EW3:EW2233),"otherwise")

unless you mean to only add the values in Column EW when the values in
column C and column AA are appropriate
in this case try
=sumproduct(--(C3:C2233=WW),--(AA3:AA2233=1),EW3:EW2233)

"Karen Smith" wrote:

I'm trying to create a formula for the following:

If C3 - C2233 = WW and
If AA3 - AA2233 = 1
than add column EW3 - EW 2233

Can someone help?

  #4   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default if statement

several possibilities
the most probables are
1 the value in column AA is actually a number in which case you should get
rid of the quote marks around 1 and use
=SUMPRODUCT(--('Master List'!$C$3:$C$2233="ag"),--('Master
List'!$AA$3:$AA$2233=1),'Master List'!$EW$3:$EW$2233)
2 there could be leading spaces in column Column C
use the trim() function
....trim(C3:C2233...


"Karen Smith" wrote:

I am only adding the values in Column EW when the values in column C and
column AA are appropriate. Here's the formula I used, but my answer = 0 and
it should have a number in it. What am I doing wrong?

=SUMPRODUCT(--('Master List'!$C$3:$C$2233="ag"),--('Master
List'!$AA$3:$AA$2233="1"),'Master List'!$EW$3:$EW$2233)

"bj" wrote:

try
=if(and(C3-C2233=WW,AA3-AA2233=1),Sum(EW3:EW2233),"otherwise")

unless you mean to only add the values in Column EW when the values in
column C and column AA are appropriate
in this case try
=sumproduct(--(C3:C2233=WW),--(AA3:AA2233=1),EW3:EW2233)

"Karen Smith" wrote:

I'm trying to create a formula for the following:

If C3 - C2233 = WW and
If AA3 - AA2233 = 1
than add column EW3 - EW 2233

Can someone 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
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
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
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM


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