copy formula

V

Vercingetorix.XIII

How do I get a formula to copy and keep same cell range? example:

=SUMIF('Flash Update'!B1:B20,"PE",'Flash Update'!D1:D20)

when I copy it to another cell it comes out as:

=SUMIF('Flash Update'!B2:B21,"PE",'Flash Update'!D2:D21)

I'd like it to stay same range and if possible update the "PE" to whatever
"x" I need instead of having to edit each one manually...

V.XIII
 
D

David Biddulph

To keep the cell references unchanged, look at the difference between
absolute and relative addressing. (Excel help will explain it.)
If you want the "PE" to pick up a value from a cell, just replace "PE" by
the reference of the cell (keeping the reference relative if you want it to
change as you copy it down).
 
S

smartin

Vercingetorix.XIII said:
How do I get a formula to copy and keep same cell range? example:

=SUMIF('Flash Update'!B1:B20,"PE",'Flash Update'!D1:D20)

when I copy it to another cell it comes out as:

=SUMIF('Flash Update'!B2:B21,"PE",'Flash Update'!D2:D21)

I'd like it to stay same range and if possible update the "PE" to whatever
"x" I need instead of having to edit each one manually...

V.XIII

Hello,

For the first part of your question, use absolute references. For the
second part, say you have values such as "PE", etc. in column A, then
enter this in B1 and fill down:

=SUMIF('Flash Update'!$B$1:$B$20,A1,'Flash Update'!$D$1:$D$20)
 

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