Copy/Paste question

tomg993

New Member
Joined
Jun 13, 2008
Messages
2
Hey gang...
I am just wanting to copy and paste a formula that holds a certain cell in the formula.
Basically
Column A conains arrival (100 year date)
Column B contains departure (100 year date)
Column C through HH contain a header date (June 1 through Dec 31,2008)

I am basically going to use a IF((AND)) statement to put a 1 in the column matching the date when someone is staying

How can copy the fomula across all the columns and hold the fact that the formula dates change but the cells referneced in the statement stay (always looking at column A and B) So the A3 and the B3 stay in each formula but both 39652 in column C go to 39653 in D, 39654 in E and so on.

=IF((AND(A3<=39652,B3>39652)),1,0)
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,214,384
Messages
6,119,201
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top