Little Help... Thanks in advance

GaryG9595

Board Regular
Joined
Jun 13, 2014
Messages
74
Office Version
  1. 365
Platform
  1. Windows
I have columns A thru Z pulling in V-lookups and I want to pull certain columns of my data from those columns based on the Zero's it finds....
First row might have zero's in columns R thru Z so I want to return column Q in Column AB, then column P in column AC, Then column O in column AD, etc....

Basically I am using this formula
Column AB=IFERROR(OFFSET(A3,0,MATCH(0,A3:Z3,0)-2),"")
Column AC=IFERROR(OFFSET(A3,0,MATCH(0,A3:Z3,0)-3),"")
Column AD=IFERROR(OFFSET(A3,0,MATCH(0,A3:Z3,0)-4),"")

and it works perfectly except it reads from left to right, so if there is a zero mixed in column c it pulls in column b...

Is there a way I can target column Z first then Y, then W, etc.... and go right to left...?

Thanks in Advance

Gary
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi Gary,

If I understand what you want, so the formula below in AB3 and copy down and to the right can helps.

=IF(OFFSET($Q3,,COLUMNS($AB3:AB3))=0,OFFSET($R3,,-COLUMNS($AB3:AB3)),"")


ABCIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAK
1
2Col01Col02Col03Col09Col10Col11Col12Col13Col14Col15Col16Col17Col18Col19Col20Col21Col22Col23Col24Col25Col26Res17Res16Res15Res14Res13Res12Res11Res10Res09
367143591358301936711034
4330255872788557134784
59239774682633087715936
63492816836488063357734
7722592165383944694995
83225711925460783628936
9844519613645379121284
10232667975273489137666
111668741812218795737308
12
*******

<tbody>
</tbody>


Markmzz
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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