ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   Is there an easier way? (https://www.excelbanter.com/setting-up-configuration-excel/202833-there-easier-way.html)

Bigpond

Is there an easier way?
 
am entering a formula that is counting items in a resource tracking
register
I Pasted 2000 entries along a row for example
=IF($B$2=FW1,$D$2-$H$2,0)
(FW1 is the item number)
I now want to copy this row down 2000 rows
so I have to change each column header to allow for downward copying example
=IF(B2=$FW$1,D2-H2,0)

I have tried writing a macro that will change example 1 to example 2, but no
matter how I try I find that the cell refences chang (D2-e2 and so on). I
need of course to be able to have these change (to c3, c4 etc) when I copy
down, so I cant use the $ signs here.

Manually it is taking forever, can anyone come up with a saving for me .

Thanks




Niek Otten

Is there an easier way?
 
I'm not sure I understand what you require.
But try this:

=IF($B2=$FW$1,$D2-$H2,0)

That is, $ signs only for the column, not for the row

--
Kind regards,

Niek Otten
Microsoft MVP - Excel



"Bigpond" wrote in message ...
| am entering a formula that is counting items in a resource tracking
| register
| I Pasted 2000 entries along a row for example
| =IF($B$2=FW1,$D$2-$H$2,0)
| (FW1 is the item number)
| I now want to copy this row down 2000 rows
| so I have to change each column header to allow for downward copying example
| =IF(B2=$FW$1,D2-H2,0)
|
| I have tried writing a macro that will change example 1 to example 2, but no
| matter how I try I find that the cell refences chang (D2-e2 and so on). I
| need of course to be able to have these change (to c3, c4 etc) when I copy
| down, so I cant use the $ signs here.
|
| Manually it is taking forever, can anyone come up with a saving for me .
|
| Thanks
|
|
|



Bigpond

Is there an easier way?
 
Thanks a lot it was exactly what I wanted, it has saved me hours and hours
regards

Peter Braun
"Niek Otten" wrote in message
...
I'm not sure I understand what you require.
But try this:

=IF($B2=$FW$1,$D2-$H2,0)

That is, $ signs only for the column, not for the row

--
Kind regards,

Niek Otten
Microsoft MVP - Excel



"Bigpond" wrote in message
...
| am entering a formula that is counting items in a resource tracking
| register
| I Pasted 2000 entries along a row for example
| =IF($B$2=FW1,$D$2-$H$2,0)
| (FW1 is the item number)
| I now want to copy this row down 2000 rows
| so I have to change each column header to allow for downward copying
example
| =IF(B2=$FW$1,D2-H2,0)
|
| I have tried writing a macro that will change example 1 to example 2,
but no
| matter how I try I find that the cell refences chang (D2-e2 and so on).
I
| need of course to be able to have these change (to c3, c4 etc) when I
copy
| down, so I cant use the $ signs here.
|
| Manually it is taking forever, can anyone come up with a saving for me .
|
| Thanks
|
|
|






All times are GMT +1. The time now is 04:44 PM.

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