copy data and not formula

martinblake02

New Member
Joined
Jan 13, 2016
Messages
23
Hello,

I have a document containing 3 sheets.

sheet 1 pulls data from an external source
sheet 2 uses index and match to locate and copy errors
sheet 3 will record errors collected by sheet 2

sheet 2 is using index/match formulas to locate information
there is 100 rows with the index/match formulas locating data
however I currently only have 30 results so I have 70 rows showing #N/A or blank using iferror

I wish to copy only the 30 lines of data and not the remaining 70 rows with formulas (no results)


How can I do this using a macro?
I want to select only the cells with results (data) and not all 100 rows?




any help is much appreciated.

thanks
martin
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Select all the cells, on the Home tab click Find & Select then Go To Special. Check Formulas, uncheck Errors and click OK. The macro recorder will give you some VBA code.
 
Upvote 0
hi,

I have tried this and it does not work, as its an index/match formula it returns #N/A which excel treats as data.

therefore it selects all rows, I have tried all different settings in GoTo.

Thanks though
 
Upvote 0
Hi,

my formula used match/rank to locate the data from sheet1 and then index/match the number to return data
it displays a "-" if there is no data to the relevant rank:

=IFERROR(INDEX(Material!A:A,MATCH($B19,Material!$AG:$AG,0)),"-")

Material = SHeet1

thanks
 
Upvote 0
it returns just the dash, but I can change it to return any value (text or number)

in the formula where it current says ,"-") I just change the - to any value
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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