Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jweasl
 
Posts: n/a
Default Add new inventory list to existing list

I have an existing inventory with the item # and qty listed. When I add new
items to the inventory, I need to have a way to check for duplicates (besides
the Find/Replace functions), and if there are duplicates, add the quantities
together, otherwise add it as a new entry. HELP!
  #2   Report Post  
Martin P
 
Posts: n/a
Default

It can be done with the very useful SUMPRODUCT function. My example will need
some refinement, but illustrates the principle. I based it on only 20 entries.
I named a few ranges:
items: cells A2 to A21
quantities: cells B2 to B21
ranks: cells C2 to C21
A1 contains the heading "Item #" and B1 contains the heading "Quantity".
Enter the item number and quantity as you get the information.
C1 contains the heading "Rank". Cell C2 has the following formula:
=IF(ISBLANK(A2)=FALSE,RANK(A2,items,5),0)
This is copied down to C21.
Cells E1 to E21 are numbered from 1 to 20.
Cell F1 contains the heading "Item #" and cell G1 contains the heading
"Quantity".
F2: =IF(I2<0,H2/I2,"")
G2: =SUMPRODUCT(quantities,--(ranks=E2))
H2: =SUMPRODUCT(items,--(ranks=E2))
I2: =SUMPRODUCT(--(ranks=E2))
Copy F2:I2 to F2:I21.

"jweasl" wrote:

I have an existing inventory with the item # and qty listed. When I add new
items to the inventory, I need to have a way to check for duplicates (besides
the Find/Replace functions), and if there are duplicates, add the quantities
together, otherwise add it as a new entry. 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
LOOP - Adddress List -to email Paul. Excel Discussion (Misc queries) 0 April 13th 05 09:54 AM
Refresh a Validation List? jhollin1138 Excel Discussion (Misc queries) 3 February 17th 05 05:48 PM
Extracting Values on one list and not another B Schwarz Excel Discussion (Misc queries) 4 January 7th 05 01:48 PM
where can I find a sample home inventory that list all items i ma. lanier Excel Discussion (Misc queries) 2 December 28th 04 09:54 AM
Creating a list from an existing list. Jad Excel Worksheet Functions 1 October 29th 04 06:00 AM


All times are GMT +1. The time now is 03:57 AM.

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"