Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default SUMIF using 2 cells that equal each other

I am using SUMIF to add cells in a column but the criteria I want to use is
add the cell only if the criteria equals another cell. I do not want to enter
the actual variable of the cell as it changes for each row of column C.

As an example: =SUMIF('A2:A5001,"C2",D2:D5001) where "C2" equals a variable
that can change.

Is there any function I can use for the variable?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUMIF using 2 cells that equal each other

You almost had it, try this

=SUMIF(A2:A5001,C2,D2:D5001)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"wormburner" wrote:

I am using SUMIF to add cells in a column but the criteria I want to use is
add the cell only if the criteria equals another cell. I do not want to enter
the actual variable of the cell as it changes for each row of column C.

As an example: =SUMIF('A2:A5001,"C2",D2:D5001) where "C2" equals a variable
that can change.

Is there any function I can use for the variable?

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
how to sumif in excel with a not equal criteria Ed New Users to Excel 2 April 30th 23 07:45 PM
SUMIF Greater than or equal to envy Excel Worksheet Functions 4 October 29th 09 01:56 AM
sumif , 2 criteria, text must equal Tim Excel Discussion (Misc queries) 3 March 23rd 09 04:51 PM
how to seperate cells with equal blank cells yaling Excel Discussion (Misc queries) 9 May 13th 07 07:04 PM
sumif if cell does not equal #N/A Micah Excel Discussion (Misc queries) 1 February 2nd 06 10:41 PM


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