get formulas to skip columns

AZA724

New Member
Joined
Sep 9, 2019
Messages
4
I need to be able to quickly copy formulas on sheet1 by dragging but excel doesn't recognize the
sequence e.g.

CELL D56 =IF(OR(B56=""),"",IF(OR(Sheet2!E32=Sheet1!B56,Sheet2!E32=0),"OK","ERROR"))
CELL D57 =IF(OR(B57=""),"",IF(OR(Sheet2!G32=Sheet1!B57,Sheet2!G32=0),"OK","ERROR"))
CELL D58 =IF(OR(B58=""),"",IF(OR(Sheet2!I32=Sheet1!B58,Sheet2!I32=0),"OK","ERROR"))

How do i copy down without typing each one individually.


 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try
Code:
=IF(B56="","",IF(OR(INDIRECT("Sheet2!E"&INT(ROW($A93)/3)+1)=B56,INDIRECT("Sheet2!E"&INT(ROW($A93)/3)+1)=0),"OK","ERROR
=IF(B57="","",IF(OR(INDIRECT("Sheet2!G"&INT(ROW($A93)/3)+1)=B57,INDIRECT("Sheet2!G"&INT(ROW($A93)/3)+1)=0),"OK","ERROR"))
=IF(B57="","",IF(OR(INDIRECT("Sheet2!I"&INT(ROW($A93)/3)+1)=B58,INDIRECT("Sheet2!I"&INT(ROW($A93)/3)+1)=0),"OK","ERROR"))
Select three cells and copy down.
 
Upvote 0
My apologies
The last formula should start with
=IF(B58="",""
 
Upvote 0
Avoiding INDIRECT solution

=IF(B56="","",IF(OR(INDEX(Sheet2!E32:ZZ32,1,(ROWS($1:1)-1)*3+1)=Sheet1!B56,INDEX(Sheet2!E32:ZZ32,1,(ROWS($1:1)-1)*3+1)=0),"OK","ERROR"))
and copy down

Replace ZZ32 with whatever column is last on Sheet2
 
Upvote 0
Maybe one of us is right

=IF(B56="","",IF(OR(INDEX(Sheet2!$32:$32,(ROWS(D$56:D56)-1)*2+5)=CHOOSE({1,2},B56,0)),"OK","ERROR"))
 
Upvote 0
Maybe one of us is right

=IF(B56="","",IF(OR(INDEX(Sheet2!$32:$32,(ROWS(D$56:D56)-1)*2+5)=CHOOSE({1,2},B56,0)),"OK","ERROR"))

Thank you this worked perfectly now i just need to understand it so I can use it for other spreadsheets :laugh:
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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