#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Paste error

Hi. I'm having trouble using a pasted cell result in as an input to a
function. Working in SHEET1, I performed a VLOOKUP to extract the
value of the cell from SHEET2. I then filtered out rows that were not
relevant using AUTOFILTER, cut the resulting data and pasted into a
new SHEET3. I've then performed a further VLOOKUP, using the results
of the orginal lookup as the input cell reference. The 2nd LOOKUP
function is reporting an error code (#N/A) when I know the reference
is present in the lookup array, and that this array is sorted
appropriately.

The problem is solved by clicking into the equation line, or F2 and
then pressing enter which makes Excel treat the cell as a number
rather than text field. The fact that the number becomes right hand
justified when clicking in this way demonstrates this.

However, I have 15,000 plus records to correct and regularly come up
against this problem... so any ideas on how to create a macro (or
other solution) that will do this much quicker would be greatly
appreciated. When I've tried writing a macro Excel uses the data that
was present in the cell at the time I recorded the macro when I
replay.

Thanks, Alan.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveSheet.Paste (error) Puzzled Excel Worksheet Functions 1 August 2nd 07 06:18 PM
Copy/Paste error Anthony Excel Worksheet Functions 2 February 7th 07 06:46 PM
Paste error from Query GrahamV Excel Discussion (Misc queries) 0 February 2nd 07 11:47 AM
Paste value error PJG Excel Discussion (Misc queries) 1 November 24th 06 02:07 PM
ActiveSheet.Paste - Error help? dk_ Excel Discussion (Misc queries) 4 November 20th 06 12:27 AM


All times are GMT +1. The time now is 11:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"