Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro to copy New Data into cell Excel

Status
Not open for further replies.

pattyjean

Technical User
Mar 3, 2006
53
US
I have a spreadsheet that needs to get updated daily. I enter the new data into a row and then copy and paste the same data into the top of the sheet so we can look at it at a glance and the details under it.

The data is organized like this
Day - HeadcountTtl - HeadcountCampus1-HeadcountCampus2
Todaysdata 3/23 - 120 -35 - 85
3/20 - 100- 25 - 75
3/21 - 105- 30 - 75
3/22 - 110 -30 - 80
3/23 - 120 -35 - 85

Each day new data is added.
Any advise will be greatly appreciated.

 


Hi,

This can be easily done using either a PivotTable or a Query (faq68-5829).

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I want the top row to be updated with the new date's figures on the same worksheet. Maybe I am not asking the question correctly?

I want to update one line of data (by date) and make it populate into the top row for easy viewing.
 



I understand perfectly.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Another approach:

In A1
=max(A2:A65535)
In B1
=vlookup($A1,$A$2:$D$65535,2,0)
In C1
=vlookup($A1,$A$2:$D$65535,3,0)

Though you would be better using a named range that automatically extends as rows are added.
faq68-1331


Gavin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top