Matching or Vlookup in Excel

azureseas001

New Member
Joined
Oct 30, 2021
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Hi, newbie here. Thanks in advance for the help.

My question is in using matching or vlookup... I have two spreadsheet tabs. I want to fill up the "Current Stock Count" in first spreadsheet tab, where the product name and variation name will be searched in second spreadsheet, and add up quantity sold for that item, then the total quantity sold will be deducted from the Initial Inventory. How to formulate the code to get the result?

Again, thank you.
 

Attachments

  • first spreadsheet.png
    first spreadsheet.png
    27.8 KB · Views: 10
  • second spreadsheet.png
    second spreadsheet.png
    22.8 KB · Views: 10

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
SUMIFS() should do that for you
can you use XL2BB or a share to put the spreadsheet rather than images, I will try and enter all data into an example , but logging off soon.

SUMIFS($E$2:$E$100, $B$2:$B$100, B2,$C$2:$C$100, B2) should add up thew quantity sold - so subtract from D2


Heres a quick sample
Book5
ABCDE
1dateProd nameVar NameInvenStock now
21/1/21ABCA11098
3ABCB10086
4ABCC9090
5ABCD8062
6XYZ17050
7XYZ26060
8XYZ35029
9XYZ44035
Sheet1
Cell Formulas
RangeFormula
E2:E9E2=D2-SUMIFS(Sheet2!$E$2:$E$7,Sheet2!$B$2:$B$7,Sheet1!B2,Sheet2!$C$2:$C$7,Sheet1!C2)



Book5
ABCDE
1dateProd nameVar NamePriceSold
2ABCA12
3ABCB14
4ABCD18
5XYZ120
6XYZ321
7XYZ45
Sheet2
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,397
Messages
6,119,271
Members
448,882
Latest member
Lorie1693

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top