Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Update Inventory


I have an inventory list online that is constantly updated. What I need
to do is check and see which new products have been added and old
products that have been discontinued. Could I merge the old inv. with
the new and run a macro or a Comparison phrase with multiple conditions
that would maybe identify with cell shading or font color the new
inventory that has been added and the old that has been removed. An
easy way to identify the products is by column A which is the mfr_code.


ex. of the mfr_code in column A
ACO-APO30
ACO-MS1/8
AMB-V4801
GEM-GH3910
ect....

Maybe, I could use the Match function with comparing sheets I could use
another column or the same column with conditional formating to color
the cells as an indicator to show which products have been added and a
different cell color for the ones that have been discontinued or a
macro that would do something similiar.

Thank you for your time,

Greg


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Update Inventory

the ones that have been removed would need to be shown on the old list (they
aren't on the new list I assume). The ones added would be on the new list.

Use conditional formatting with Formula is rather than cell value is. Use
the =Countif(sheet2!$A:$A,A2)0

Regards,
Tom Ogilvy

stiv wrote in message
...

I have an inventory list online that is constantly updated. What I need
to do is check and see which new products have been added and old
products that have been discontinued. Could I merge the old inv. with
the new and run a macro or a Comparison phrase with multiple conditions
that would maybe identify with cell shading or font color the new
inventory that has been added and the old that has been removed. An
easy way to identify the products is by column A which is the mfr_code.


ex. of the mfr_code in column A
ACO-APO30
ACO-MS1/8
AMB-V4801
GEM-GH3910
ect....

Maybe, I could use the Match function with comparing sheets I could use
another column or the same column with conditional formating to color
the cells as an indicator to show which products have been added and a
different cell color for the ones that have been discontinued or a
macro that would do something similiar.

Thank you for your time,

Greg


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Update Inventory

If 'A' is the old list then put the new list in say 'D'

in 'B' put a MATCH where you look for the value in A in
the list in D
Set a conditional format where if Match is #N/A the value
in 'A' has a red backdrop ... ie not in the new, dropped

In 'E' put a match where it looks for the value in 'D' in
the list in 'A'
set conditional formatting for D to say a green
background where 'E' is N/A ie a new entry


The following proc assumes the old list in A from A1 and
the new list in D from D1
It adds th ematch formulae AND the conditional formatting
too:

Sub Builder()

With Range(Range("a1"), _
Range("A1").End(xlDown)).Offset(0, 1)

.FormulaR1C1 = _
"=IF(ISNA(MATCH(RC1,RC4,False)),0,MATCH(RC1,RC4,Fa lse))"

End With
With Range(Range("a1"), _
Range("B1").End(xlDown))

.FormatConditions.Delete
.FormatConditions.Add _
Type:=xlExpression, _
Formula1:="=$B1=0"
.FormatConditions(1).Interior.ColorIndex = 3

End With

With Range(Range("D1"), _
Range("D1").End(xlDown)).Offset(0, 1)

.FormulaR1C1 = _
"=IF(ISNA(MATCH(RC4,RC1,False)),0,MATCH(RC4,RC1,Fa lse))"

End With

With Range(Range("D1"), _
Range("E1").End(xlDown))

.FormatConditions.Delete
.FormatConditions.Add _
Type:=xlExpression, _
Formula1:="=$E1=0"
.FormatConditions(1).Interior.ColorIndex = 35

End With

End Sub





Patrick Molloy
Microsoft Excel MVP




-----Original Message-----

I have an inventory list online that is constantly

updated. What I need
to do is check and see which new products have been

added and old
products that have been discontinued. Could I merge the

old inv. with
the new and run a macro or a Comparison phrase with

multiple conditions
that would maybe identify with cell shading or font

color the new
inventory that has been added and the old that has been

removed. An
easy way to identify the products is by column A which

is the mfr_code.


ex. of the mfr_code in column A
ACO-APO30
ACO-MS1/8
AMB-V4801
GEM-GH3910
ect....

Maybe, I could use the Match function with comparing

sheets I could use
another column or the same column with conditional

formating to color
the cells as an indicator to show which products have

been added and a
different cell color for the ones that have been

discontinued or a
macro that would do something similiar.

Thank you for your time,

Greg


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Update Inventory


Thank you for your help,

Patrick that is exactly what I was looking to do. But, when I ran th
code and put the old in column A and the new in column D the results i
each were as follows

column B
=IF(ISNA(MATCH(RC1,RC4,False)),0,MATCH(RC1,RC4,Fal se))

column E
=IF(ISNA(MATCH(RC4,RC1,False)),0,MATCH(RC4,RC1,Fal se))

Row A had 1670 product code entries
Row B had 2322 product code entries

This would work to have Column A look at column D and list in column
the products that do not match which would list old products. (delet
matching products)

Have column D look at column A and list in E the products that do no
match which would list new products (delete matching products)

Thank you for your time,

Gre

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

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
Update formula automatically for inventory pcrumpacker Excel Worksheet Functions 1 July 18th 08 12:31 AM
How do update inventory Stephen Excel Discussion (Misc queries) 2 November 24th 06 02:02 AM
how to automatically update inventory list with sales lalani New Users to Excel 2 August 20th 06 07:37 AM
update prices in inventory based on downloaded price list?? Wilk Excel Worksheet Functions 1 February 19th 06 01:57 AM
Software Update INVENTORY Query Carl Hilton Excel Worksheet Functions 1 January 19th 06 03:01 PM


All times are GMT +1. The time now is 04:10 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"