Using >CELL in SUMIF Criteria

N

N. Thole

Where one range (B25:M25) is years and the other is $
amounts (B27:M27), I am attempting to set the criteria so
that it will only count particular years. This works:

=SUMIF($B$25:$M$25,">2003",B27:M27)

But I would like to change ">2003" instead to a particular
cell (in this case ">B7"), so that the criteria can be
changed and updated automotically.

Is there a way to do this in SUMIF or do I need to use SUM
(IF)? If the latter is the case, how?
 
L

Leo Heuser

Excel "sees" ">B7" as a string with 3 characters
< B and 7.
To make Excel see B7 as a reference use
">" & B7
instead

--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.
 
N

N. Thole

Thanks to all three for your solution. For one reason or
another, I had not run into that before.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top