Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
BRB BRB is offline
external usenet poster
 
Posts: 23
Default Update a column data with info from new worksheet

I have a worksheet with 15 columns, one of the columns contains Part Numbers
and another column contains the cost of the associated PN. I need to update
the cost information based on a worksheet received weekly from costing. This
new worksheet only has 4 columns with updated costs, but only for PNs that
have new cost. How do I update worksheet "A" with the data from "B" without
having to search some 3000 rows?

example:
wks"A":
colA colD colE
A231 $45 apples
A452 $35 pears
B789 $23 bananas


wks"B"

A452 $32
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Update a column data with info from new worksheet

In a 'helper' column, you can use a combination of the 'vlookup' and
'iserror' functions as I did in this formula:
=IF(ISERROR(VLOOKUP(A3,newcost,2,FALSE)),B3,VLOOKU P(A3,NEWCOST,2,FALSE)).
Where A3 contains your part number, 'newcost' is a table name I created to
refer to the data you would receive from your costing department, the '2'
refers to the cost column in the 'newcost' table, and B3 refers to the cost
of your original part number.

The end result is that if the vlookup function does not find a match in your
table of new costs it simply displays the old cost, if it finds a match it
displays the new cost. After you are done you can copy and paste the updated
coss as values.
--
T Tipsy


"BRB" wrote:

I have a worksheet with 15 columns, one of the columns contains Part Numbers
and another column contains the cost of the associated PN. I need to update
the cost information based on a worksheet received weekly from costing. This
new worksheet only has 4 columns with updated costs, but only for PNs that
have new cost. How do I update worksheet "A" with the data from "B" without
having to search some 3000 rows?

example:
wks"A":
colA colD colE
A231 $45 apples
A452 $35 pears
B789 $23 bananas


wks"B"

A452 $32

  #3   Report Post  
Posted to microsoft.public.excel.misc
BRB BRB is offline
external usenet poster
 
Posts: 23
Default Update a column data with info from new worksheet

Terry, thanks. This helps.

But is there a way to write a macro to do this update? I would like to avoid
toomany manual steps. Thanks again.

"Terry Tipsy" wrote:

In a 'helper' column, you can use a combination of the 'vlookup' and
'iserror' functions as I did in this formula:
=IF(ISERROR(VLOOKUP(A3,newcost,2,FALSE)),B3,VLOOKU P(A3,NEWCOST,2,FALSE)).
Where A3 contains your part number, 'newcost' is a table name I created to
refer to the data you would receive from your costing department, the '2'
refers to the cost column in the 'newcost' table, and B3 refers to the cost
of your original part number.

The end result is that if the vlookup function does not find a match in your
table of new costs it simply displays the old cost, if it finds a match it
displays the new cost. After you are done you can copy and paste the updated
coss as values.
--
T Tipsy


"BRB" wrote:

I have a worksheet with 15 columns, one of the columns contains Part Numbers
and another column contains the cost of the associated PN. I need to update
the cost information based on a worksheet received weekly from costing. This
new worksheet only has 4 columns with updated costs, but only for PNs that
have new cost. How do I update worksheet "A" with the data from "B" without
having to search some 3000 rows?

example:
wks"A":
colA colD colE
A231 $45 apples
A452 $35 pears
B789 $23 bananas


wks"B"

A452 $32

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Update a column data with info from new worksheet

You probably can, but macros is an area I'm not to comfortable with yet.
Hopefully someone else will respond with a better option for you. Good luck.
--
T Tipsy


"BRB" wrote:

Terry, thanks. This helps.

But is there a way to write a macro to do this update? I would like to avoid
toomany manual steps. Thanks again.

"Terry Tipsy" wrote:

In a 'helper' column, you can use a combination of the 'vlookup' and
'iserror' functions as I did in this formula:
=IF(ISERROR(VLOOKUP(A3,newcost,2,FALSE)),B3,VLOOKU P(A3,NEWCOST,2,FALSE)).
Where A3 contains your part number, 'newcost' is a table name I created to
refer to the data you would receive from your costing department, the '2'
refers to the cost column in the 'newcost' table, and B3 refers to the cost
of your original part number.

The end result is that if the vlookup function does not find a match in your
table of new costs it simply displays the old cost, if it finds a match it
displays the new cost. After you are done you can copy and paste the updated
coss as values.
--
T Tipsy


"BRB" wrote:

I have a worksheet with 15 columns, one of the columns contains Part Numbers
and another column contains the cost of the associated PN. I need to update
the cost information based on a worksheet received weekly from costing. This
new worksheet only has 4 columns with updated costs, but only for PNs that
have new cost. How do I update worksheet "A" with the data from "B" without
having to search some 3000 rows?

example:
wks"A":
colA colD colE
A231 $45 apples
A452 $35 pears
B789 $23 bananas


wks"B"

A452 $32

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
Copy data into another worksheet and have it update automatically? Taxed Mind Excel Discussion (Misc queries) 4 October 6th 06 12:17 AM
Help with referencing please Matt New Users to Excel 18 September 11th 06 10:15 AM
How do I get ONLY new info from 1 Worksheet to another automatical Elaine Excel Worksheet Functions 6 July 13th 06 05:45 PM
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM


All times are GMT +1. The time now is 05:50 PM.

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"