Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2007

Tip: Looking for answers? Try searching our database.

maintain pricelist with price changes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
leo - 05 Jun 2007 10:08 GMT
Hi there,

Using a macro to update values that changed;

In a workbook (PRICELIST) I keep multiple sets of three columns holding data;
Interesting now is the second and third column which hold product and price.

A separate workbook (PRODUCT MANAGMENT) holds the products and prices for
changed products only, but separated with some more colmns in between prod-no
and price. (description/weight/size etc) The later file has management of the
prices and I want to update the first workbook (PRICELIST) with the changed
prices from the second file (PRODUCT MANAGEMENT)
There may be only three lines (three changes) or 100 lines depending on the
volume of changes.
Products starting cell B7 (due to headings etc) and prices starting H7

I want PRODUCT MANGEMENT to update PRICELIST with the PRICE.
Could a macro help here? And how?
Nowadays I manually do finds on productnumber and type the new price behind
it.

Thanks for helping out
Dave Peterson - 05 Jun 2007 13:33 GMT
Personally, with this kind of stuff, I wouldn't use a macro to just update the
prices in place.  In fact, I don't think I'd use a macro at all.

I'd insert a couple of new columns (temporarily) in the Pricelist
workbook--adjacent to the current prices.

The first column would contain an =vlookup() to retrieve any price change from
the Product management workbook:

=VLOOKUP(A2,'[product management.xls]Sheet1'!$B:$H,7,FALSE)

This will return an #n/a if the product key doesn't find a match or it will
return the new price from that product management worksheet.  

And drag down.

Then in the next inserted column, I'd compare the old price with the new price.

Say that returned value was in column C, then I'd use this formula:

=if(isna(c2),"No price on PM",if(b2=c2,"No change","Change"))

Then I'd filter on that column to look at the results.

I'd also spend some time in the PM workbook.  Make sure that there are matches
for product codes and no duplicates codes--with different prices.

If I had to "macro-ize" this, about the only thing I'd do is insert the extra
columns, add the formulas and apply the filter.  The checking would still be
done manually (well, for me anyway).

(From someone who worked in product management and learned not to trust those
people updating price lists.  <vbg>.)

> Hi there,
>
[quoted text clipped - 18 lines]
>
> Thanks for helping out

Signature

Dave Peterson

leo - 05 Jun 2007 15:58 GMT
Dave,

Appreciate the approach and result, apart from the manual checking!!

Leo

> Personally, with this kind of stuff, I wouldn't use a macro to just update the
> prices in place.  In fact, I don't think I'd use a macro at all.
[quoted text clipped - 52 lines]
> >
> > Thanks for helping out
Dave Peterson - 05 Jun 2007 16:10 GMT
I never liked the manual checking, either.  But with something as sensitive as
prices, I thought the time and effort were worth it.

I guess if you expected each change to be within a percentage or always up
(prices hardly ever go down???), you could include that in your check (maybe
another column with percent increase/decrease???).

Numbers are just too easily entered incorrectly.

> Dave,
>
[quoted text clipped - 62 lines]
> >
> > Dave Peterson

Signature

Dave Peterson


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.