Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Vlookup VBA Beginner Help

I have a sheet where I paste data from another database report, extracted as
a .csv. This data contains only 3 columns: Plant, Date and Score.
There will be a maximum of 45 rows.
This data will change weekly, and not all plants will be represented each
week.

What I would like to do is to set up a button for the user to hit, once the
new data is pasted in. This button activates a macro which will take the new
data and place it on another sheet where the Scores are sorted by Plant and
Date. I intend to keep all the weekly scores in the sheet.
I can write a vlookup formula that works; how can I put it into a macro such
that it will process the entire sheet?

With the new data sheet formatted as:
Column A Column B Column C
Plant Date Score

And the Storage sheet formatted as:
Column A Column B Column C Column D ........
Plant Date 1 Date 2 Date 3 ........
Plant 1 Score 1 Score 2 Score 3 .......
Plant 2 Score 1 Score 2.......

This is my formula (from the storage sheet):
=IF(Start!$B$2=B$1,(VLOOKUP($A3,Start!$A$2:$C$20,3 ,FALSE)),NA())
This formula moves over as necessary by date.

Any ideas as to how to set this up?

Thanks for the help.
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
Add-in / XLL beginner Peter Pan Excel Programming 2 June 14th 07 09:42 AM
Beginner Bob Phillips Excel Programming 0 January 4th 07 10:41 AM
Beginner to VBA David Gerstman Excel Programming 0 December 5th 06 11:09 PM
VB beginner Matthew Balch Excel Programming 4 August 31st 06 04:31 PM
Please help a beginner.... Lindsey Excel Programming 2 November 25th 05 04:11 PM


All times are GMT +1. The time now is 06:33 AM.

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

About Us

"It's about Microsoft Excel"