Return non blank cells in a row throughout a table?

zuki01

New Member
Joined
Jul 25, 2014
Messages
23
H Hi

I have made a macro (using a lot of help from this forum) to produce a table made up of rows with postcodes in and then some blank cells before the next postcode my drivers go to.

My problem is that the postcodes come out in different columns. So in A1 is a postcode and in D1 is the next postcode and then the next driver on row B has his postcodes in B2 and C2.

I want to put a formula in say column F that can copy down and find the first postcode and then a formula in column G and copy down to show the second.

I’ve tried to do it with Index and Find functions but to no avail.

Any help would be much appreciated.

Thanks.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,576
Messages
6,125,633
Members
449,242
Latest member
Mari_mariou

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