ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   drag a formula downa column keeping one value the same? (https://www.excelbanter.com/excel-worksheet-functions/252600-drag-formula-downa-column-keeping-one-value-same.html)

column formula with a constant value

drag a formula downa column keeping one value the same?
 
I need to drag a formula down a column, but keep one value constant (when I
drag the formula down, the values in the formula change according to the row,
but I need to keep one constant so each cell's formula refers to one specific
cell.)

Ex. - =IF(L3040000,L1*.60,=IF(L30<20000,L1*.5,=IF(L30<4 0000,L1*.55,0)))

I need to keep the L30 values the same, while the L1 changes for each row,
but when I drag this formula down the column, the L30 changes.

Thanks!

ExcelBanter AI

Answer: drag a formula downa column keeping one value the same?
 
  1. Click on the cell containing the formula you want to drag down.
  2. Click on the cell reference you want to keep constant (in this case, $L$30).
  3. Type a dollar sign ($) before the column letter and row number, like this: $L$30.
  4. Press Enter to lock the cell reference.
  5. Click on the cell containing the formula again.
  6. Hover your mouse over the bottom right corner of the cell until you see a small black cross.
  7. Click and drag the cross down the column to fill the formula into the cells below.

Now, when you drag the formula down the column, the L30 reference will stay the same while the L1 reference changes for each row. This is because the dollar sign locks the cell reference in place, preventing it from changing when you drag the formula down.

Paul C

drag a formula downa column keeping one value the same?
 
Change your L30 to a absolute reference $L$30
--
If this helps, please remember to click yes.


"column formula with a constant value" wrote:

I need to drag a formula down a column, but keep one value constant (when I
drag the formula down, the values in the formula change according to the row,
but I need to keep one constant so each cell's formula refers to one specific
cell.)

Ex. - =IF(L3040000,L1*.60,=IF(L30<20000,L1*.5,=IF(L30<4 0000,L1*.55,0)))

I need to keep the L30 values the same, while the L1 changes for each row,
but when I drag this formula down the column, the L30 changes.

Thanks!


column formula with a constant value[_2_]

drag a formula downa column keeping one value the same?
 
Perfect...Thank you Paul!

"Paul C" wrote:

Change your L30 to a absolute reference $L$30
--
If this helps, please remember to click yes.


"column formula with a constant value" wrote:

I need to drag a formula down a column, but keep one value constant (when I
drag the formula down, the values in the formula change according to the row,
but I need to keep one constant so each cell's formula refers to one specific
cell.)

Ex. - =IF(L3040000,L1*.60,=IF(L30<20000,L1*.5,=IF(L30<4 0000,L1*.55,0)))

I need to keep the L30 values the same, while the L1 changes for each row,
but when I drag this formula down the column, the L30 changes.

Thanks!


David Biddulph[_2_]

drag a formula downa column keeping one value the same?
 
Firstly, your formula wouldn't work anyway, because you've got 2 spare
equals signs in there. It's always best if you copy and paste your actual
formula in here, rather than typing something different.

Secondly, what you need to look at is the difference between relative and
absolute addressing. Excel help will explain it.

Try =IF(L$3040000,L1*0.6,IF(L$30<20000,L1*0.5,IF(L$30 <40000,L1*0.55,0)))
--
David Biddulph


column formula with a constant value wrote:
I need to drag a formula down a column, but keep one value constant
(when I drag the formula down, the values in the formula change
according to the row, but I need to keep one constant so each cell's
formula refers to one specific cell.)

Ex. -
=IF(L3040000,L1*.60,=IF(L30<20000,L1*.5,=IF(L30<4 0000,L1*.55,0)))

I need to keep the L30 values the same, while the L1 changes for each
row, but when I drag this formula down the column, the L30 changes.

Thanks!





All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com