Copy a formula right, but cell reference going down.

Beh162

Board Regular
Joined
Jan 15, 2015
Messages
132
I'm currently using a formula IF(B6=1,"W","L")

I need to copy the formula right, but when I do so I then get if(C6=1,"W","L"). I'd like the cell reference to go down instead so B7, B8.

I'm not sure what the best approach to this would be?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If your data starts in B6, put this where you need the answer to be, and copy across...
=if(OFFSET($B$6,COLUMNS($A$1:A1)-1,)=1,"W","L")
 
Upvote 0
OFFSET is a volatile function. Here is a non-volatile approach:

=IF(INDEX($B:$B,COLUMNS($B$1:B$1)+5)=1,"W","L")
 
Upvote 0
OFFSET is a volatile function. Here is a non-volatile approach:

=IF(INDEX($B:$B,COLUMNS($B$1:B$1)+5)=1,"W","L")

I did get this one to work, except when I dragged the formula to the right, it's still giving me the same answer based on the first reference(+5). It's like it's not moving down to the next reference which is +6
 
Upvote 0
The formula has been tested to work.

If you made some modifications, make sure the first column reference is absolute and the second is relative: ...COLUMNS($B$1:B$1)...
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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