Formula in Alternate rows that do not reference alternate

mShah29

New Member
Joined
Dec 17, 2015
Messages
6
Hello everyone,

How can I achieve this?

I need to do this for over 10,000 cells.

If I drag and drop, it picks up every alternate A and B cells.

Any suggestions are greatly appreciated.

ABCD
1=IF(MOD(ROW(),2)=0,(IF(A1="","",A1)),(IF(B1="","",B1)))
2=IF(MOD(ROW(),2)=0,(IF(A1="","",A1)),(IF(B1="","",B1)))
3=IF(MOD(ROW(),2)=0,(IF(A2="","",A2)),(IF(B2="","",B2)))
4=IF(MOD(ROW(),2)=0,(IF(A2="","",A2)),(IF(B2="","",B2)))
5=IF(MOD(ROW(),2)=0,(IF(A3="","",A3)),(IF(B3="","",B3)))
6=IF(MOD(ROW(),2)=0,(IF(A3="","",A3)),(IF(B3="","",B3)))

<tbody>
</tbody>

Thank you.
 
Eric,

So, I want to be able to do this:

I want to toggle between Column F and Column D,

I tried:

=OFFSET($D$10,(ROW()-1)/2,MOD(ROW(),2)*6)
but it gives me the value in Column F, I want to reverse this.

I want the even rows to have the value in Column F and the odd rows to have the value in Column D.
The above formula reverses that.

Can you help?

I appreciate all your help.
Thank you.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,331
Messages
6,124,312
Members
449,152
Latest member
PressEscape

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