Help with Formula

%3CLINGO-SUB%20id%3D%22lingo-sub-2620275%22%20slang%3D%22en-US%22%3EHelp%20with%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2620275%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20inventory%20spreadsheet%20that%20displays%202%20columns%20of%20different%20Names.%20These%20names%20are%20ID's%20of%20product%20we%20buy%20from%202%20different%20companies%20(hence%20why%20there%20are%202%20separate%20columns).%20We%20need%20to%20have%20both%20ID's%20in%20the%20spreadsheet%20because%20this%20is%20how%20we%20receive%20them%20based%20off%20of%20the%20info%20we%20get%20from%20the%20companies.%20BUT%2C%20since%20they%20are%20technically%20the%20same%20product%2C%20we%20need%20to%20know%20how%20many%20we%20have%20of%20all%20of%20them%20together.%20The%20first%20issue%20I%20am%20having%20is%20that%20I%20cant%20seem%20to%20get%20my%20received%20column%20to%20find%20how%20many%20items%20we%20have%20received%20based%20on%20both%20of%20the%20separate%20ID's.%20I%20achieved%20this%20in%20the%20past%20by%20using%20sumifs%20function%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DSUMIFS(Received_Q3%5BReceived%5D%2CReceived_Q3%5BOrder%20ID%5D%2C%5B%40%5BOrder%20ID%5D%5D)%26nbsp%3B%3C%2FP%3E%3CP%3Ewhere%20received_Q3%20is%20a%20table%20on%20another%20sheet%3C%2FP%3E%3CP%3E%5BReceived%5D%20is%20the%20name%20of%20the%20column%20of%20the%20received%20amount%20in%20the%20received%20table%3C%2FP%3E%3CP%3E%5BOrder%20ID%5D%20is%20the%20name%20of%20item%20in%20the%20column%20on%20the%20received%20table%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20%5B%40%5BOrder%20ID%5D%5D)%20relates%20to%20the%20order%20ID%20on%20the%20current%20table%20I'm%20sending%20the%20information%20to.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBecause%20I%20now%20have%202%20%22Order%20ID%20columns%22%20with%20separate%20ID's%2C%20I%20cant%20seem%20to%20get%20sumifs%20to%20look%20up%20the%20same%20way%20by%20using%202%20different%20column%20ID's.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20feel%20like%20it%20is%20something%20easily%20done%20that%20I%20am%20missing%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20a%20pro%20at%20excel%20at%20all%20and%20I've%20learned%20a%20lot%20of%20stuff%20a%20long%20the%20way%20in%20the%20past%202%20years%20of%20doing%20this%20by%20asking%20questions%2C%20looking%20up%20info%2Fvideos%20myself%20and%20getting%20accustomed%20to%20the%20specific%20formula%20I'm%20using%20at%20that%20time.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20another%20issue%20that%20I%20am%20facing%20in%20the%20the%20receiving%20table%20where%20ive%20used%20vlookup%20to%20lookup%20information%20from%20the%20order%20ID%20column%20which%20comes%20from%20a%20data%20validation%20list%20from%20a%20named%20range.%20Since%20I%20now%20have%202%20id%20columns%2C%20obviously%20vlookup%20will%20not%20look%20up%20the%20information%20in%20the%20second%20column%20as%20well%20since%20vlookup%20only%20works%20on%20the%20first%20column%20in%20a%20table.%20is%20there%20any%20other%20formula%2Ffunction%20to%20work%20around%20this%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20my%20test%20workbook%20that%20I've%20been%20toying%20around%20with%20for%20the%20past%20couple%20of%20days%20to%20try%20to%20get%20things%20to%20work.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2620275%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2622824%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2622824%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F824807%22%20target%3D%22_blank%22%3E%40Krista1228%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20sum%20the%20received%20amounts%20using%20the%20two%20vendor%20ID's%2C%20you%20could%20try%3A%3C%2FP%3E%3CP%3E%3DSUMPRODUCT(--((%5B%40%5BAtlantic%20Plywood%20ID%5D%5D%26lt%3B%26gt%3B%22%22)*(Received_Q3%5BAtlantic%20ID%5D%3D%5B%40%5BAtlantic%20Plywood%20ID%5D%5D)%2B(%5B%40%5BPremium%20Plywood%20ID%5D%5D%26lt%3B%26gt%3B%22%22)*(Received_Q3%5BPremium%20ID%5D%3D%5B%40%5BPremium%20Plywood%20ID%5D%5D)%26gt%3B0)%2CReceived_Q3%5BReceived%5D)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%2C%20it%20looks%20like%20your%20received%20table%20is%20using%20the%20vendor%20ID%20to%20pull%20in%20the%20corresponding%20ID%20you%20use%20internally%20from%20the%20inventory%20tracking%3F%20Could%20your%20inventory%20tracking%20table%20just%20sumif%20using%20your%20internal%20ID%20since%20it%20appears%20that%20field%20exists%20in%20both%20tables%20(maybe%20you%20weren't%20because%20of%20the%20issue%20w%2F%20pulling%20the%20ID%20into%20the%20received%20table)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DSUMIF(Received_Q3%5BID%5D%2C%5B%40ID%5D%2CReceived_Q3%5BReceived%5D)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20ID%2C%20you%20could%20try%20(you%20indicate%20you%20have%20office%20365%2C%20but%20if%20you%20didn't%20it%20would%20require%20you%20to%20hit%20Ctrl%2BShift%2BEnter)%3A%3C%2FP%3E%3CP%3E%3DINDEX(Inventory_Master%5BID%5D%2CMATCH(1%2C--((%5B%40%5BAtlantic%20ID%5D%5D%26lt%3B%26gt%3B%22%22)*(Inventory_Master%5BAtlantic%20Plywood%20ID%5D%3D%5B%40%5BAtlantic%20ID%5D%5D)%2B(%5B%40%5BPremium%20ID%5D%5D%26lt%3B%26gt%3B%22%22)*(Inventory_Master%5BPremium%20Plywood%20ID%5D%3D%5B%40%5BPremium%20ID%5D%5D)%26gt%3B0)%2C0))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20probably%20consider%20setting%20up%20a%20table%20to%20serve%20solely%20as%20a%20crosswalk%20between%20the%20vendor%20codes%20and%20my%20product%20codes%20(vendor%20name%2C%20product%20ID%2C%20my%20product%20ID).%20Then%2C%20in%20the%20received%20table%2C%20have%20vendor%20name%2C%20vendor%20id%2C%20my%20id%2C%20and%20look%20up%20the%20vendor%20name%2Bvendor%20id%20in%20the%20table%20and%20return%20my%20id%20(google%20%22excel%20multiple%20criteria%20lookup%22%20and%20I%20think%20you%20should%20find%20some%20examples).%20Then%2C%20all%20of%20the%20downstream%20formulas%20solely%20use%20my%20product%20ID's%20for%20lookups%2Fcalculations%20(crosswalk%20the%20vendor%20codes%20right%20away%2C%20and%20then%20just%20use%20my%20internal%20unique%20codes%20from%20there%20so%20there's%20only%20one%20source%20cell%20for%20lookup%2Fsumif%20functions).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20if%20you%20have%20office%20365%2C%20I%20would%20think%20you%20would%20have%20problems%20with%20formulas%20like%20this%20one%20in%20your%20consumption%20table%20(cell%20C2%2C%20but%20the%20rest%20of%20the%20table%20is%20the%20same)%20due%20to%20a%20change%20in%20excel's%20default%20calculation%20method%20from%20%22implicit%20intersection%22%20to%20%22dynamic%20array.%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DVLOOKUP(A%3AA%2CInventory_Master%2C3%2CFALSE)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20might%20try%3A%3C%2FP%3E%3CP%3E%3DVLOOKUP(A2%2CInventory_Master%2C3%2CFALSE)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2641217%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2641217%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOk%2C%3C%2FP%3E%3CP%3ESo%20I've%20spent%20the%20past%20several%20days%20working%20on%20creating%20my%20own%20ID's.%20Unfortunately%20the%20ID's%20that%20you%20thought%20were%20%22internal%22%20were%20simply%20just%20the%20vendors%20descriptions%20(Identifications)%20of%20the%20product%20(not%20our%20own-we%20didn't%20have%20any).%20So%20now%20that%20I've%20made%20a%20vendor%20crosswalk%20for%20everything%20and%20have%20tried%20my%20best%20to%20come%20up%20with%20%22our%20own%20unique%20ID's%22%20my%20next%20issue%20is%2C%20when%20I%20count%20the%20inventory-%20we%20go%20by%20the%20vendor's%20numbers%20because%20they%20are%20already%20stamped%20on%20the%20side%20of%20the%20the%20sheetstock%20material%20(and%20if%20not%20then%20we%20write%20them).%20The%20guys%20downstairs%20want%20to%20keep%20vendor%20specific%20products%20separate%20from%20each%20other%20because%20if%20there%20is%20an%20issue%20with%20an%20order%20we%20need%20to%20easily%20identify%20which%20vendor%20it%20was%20from%20(and%20also%20makes%20it%20super%20easy%20to%20count%20and%20track%20for%20me).%20Now%20I%20have%20no%20way%20of%20tracking%20the%20inventory%20in%20my%20inventory%20tracking%20sheet%20because%20everything%20is%20based%20off%20of%20%22our%20ID.%22%20I%20used%20to%20be%20able%20to%20ctrl%20F%20and%20type%20in%20an%20ID%20to%20find%20it%20quickly%20and%20mark%20how%20many%20we%20have%2C%20now%20I%20cant.%20I%20also%20set%20the%20tracking%20sheet%20up%20to%20have%20a%20column%20to%20show%20the%20vendor%20and%20ID's%20that%20correspond%20to%20%22our%20ID%22%20because%20we%20need%20these%20numbers%20for%20ordering%20(which%20I%20also%20do).%20The%20guys%20upstairs%20however%2C%20who%20engineer%20everything%2C%20only%20need%20to%20know%20how%20much%20of%20a%20specific%20product%20we%20have%20in%20stock%20(hence%20why%20I%20needed%20to%20come%20up%20with%20a%20way%20to%20combine%20the%20products%20from%20different%20vendors%2Fids%20into%201%20calculation).%20This%20also%20tells%20us%20exactly%20how%20much%20of%20that%20product%20we%20have%20in%20stock%20despite%20being%20from%20different%20vendors%2C%20which%20is%20great%20when%20I%20do%20the%20sales%20because%20I'm%20now%20not%20trying%20to%20look%20up%204%20different%20vendors%20for%201%20item.%20So%20I%20guess%20what%20it%20comes%20down%20to%20is%20I%20need%20a%20way%20to%20be%20able%20to%20track%20the%20inventory%20based%20off%20of%20the%20individual%20vendor%20ID's%20but%20also%20need%20to%20be%20able%20to%20see%20how%20much%20of%20that%20item%20we%20have%20across%20several%20vendor%20ID's.%20Does%20that%20make%20sense%3F%20I've%20attached%20the%20updated%20workbook.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2642451%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2642451%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F824807%22%20target%3D%22_blank%22%3E%40Krista1228%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPower%20Pivot%20Solution%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Yea_So_0-1629051974369.png%22%20style%3D%22width%3A%202160px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F303385i506B1F7E0D52CC93%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Yea_So_0-1629051974369.png%22%20alt%3D%22Yea_So_0-1629051974369.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi, 

 

I have an inventory spreadsheet that displays 2 columns of different Names. These names are ID's of product we buy from 2 different companies (hence why there are 2 separate columns). We need to have both ID's in the spreadsheet because this is how we receive them based off of the info we get from the companies. BUT, since they are technically the same product, we need to know how many we have of all of them together. The first issue I am having is that I cant seem to get my received column to find how many items we have received based on both of the separate ID's. I achieved this in the past by using sumifs function: 

 

=SUMIFS(Received_Q3[Received],Received_Q3[Order ID],[@[Order ID]]) 

where received_Q3 is a table on another sheet

[Received] is the name of the column of the received amount in the received table

[Order ID] is the name of item in the column on the received table 

and [@[Order ID]]) relates to the order ID on the current table I'm sending the information to. 

 

Because I now have 2 "Order ID columns" with separate ID's, I cant seem to get sumifs to look up the same way by using 2 different column ID's. 

 

I feel like it is something easily done that I am missing? 

 

I'm not a pro at excel at all and I've learned a lot of stuff a long the way in the past 2 years of doing this by asking questions, looking up info/videos myself and getting accustomed to the specific formula I'm using at that time. 

 

I have another issue that I am facing in the the receiving table where ive used vlookup to lookup information from the order ID column which comes from a data validation list from a named range. Since I now have 2 id columns, obviously vlookup will not look up the information in the second column as well since vlookup only works on the first column in a table. is there any other formula/function to work around this? 

 

I have attached my test workbook that I've been toying around with for the past couple of days to try to get things to work. 

 

Thanks! 

3 Replies

@Krista1228 

 

To sum the received amounts using the two vendor ID's, you could try:

=SUMPRODUCT(--(([@[Atlantic Plywood ID]]<>"")*(Received_Q3[Atlantic ID]=[@[Atlantic Plywood ID]])+([@[Premium Plywood ID]]<>"")*(Received_Q3[Premium ID]=[@[Premium Plywood ID]])>0),Received_Q3[Received])

 

But, it looks like your received table is using the vendor ID to pull in the corresponding ID you use internally from the inventory tracking? Could your inventory tracking table just sumif using your internal ID since it appears that field exists in both tables (maybe you weren't because of the issue w/ pulling the ID into the received table)?

 

=SUMIF(Received_Q3[ID],[@ID],Received_Q3[Received])

 

For the ID, you could try (you indicate you have office 365, but if you didn't it would require you to hit Ctrl+Shift+Enter):

=INDEX(Inventory_Master[ID],MATCH(1,--(([@[Atlantic ID]]<>"")*(Inventory_Master[Atlantic Plywood ID]=[@[Atlantic ID]])+([@[Premium ID]]<>"")*(Inventory_Master[Premium Plywood ID]=[@[Premium ID]])>0),0))

 

Going forward, I would probably consider setting up a table to serve solely as a crosswalk between the vendor codes and my product codes (vendor name, vendor product ID, my product ID). Then, in the received table, have vendor name, vendor id, my id, and look up the vendor name+vendor id in the table and return my id (google "excel multiple criteria lookup" and I think you should find some examples). Then, all of the downstream formulas solely use my product ID's for lookups/calculations (crosswalk the vendor codes right away, and then just use my internal unique codes from there so there's only one source cell for lookup/sumif functions).

 

Also, if you have office 365, I would think you would have problems with formulas like this one in your consumption table (cell C2, but the rest of the table is the same) due to a change in excel's default calculation method from "implicit intersection" to "dynamic array." 

 

=VLOOKUP(A:A,Inventory_Master,3,FALSE)

 

You might try:

=VLOOKUP(A2,Inventory_Master,3,FALSE)

 

@JMB17 

 

Ok,

So I've spent the past several days working on creating my own ID's. Unfortunately the ID's that you thought were "internal" were simply just the vendors descriptions (Identifications) of the product (not our own-we didn't have any). So now that I've made a vendor crosswalk for everything and have tried my best to come up with "our own unique ID's" my next issue is, when I count the inventory- we go by the vendor's numbers because they are already stamped on the side of the the sheetstock material (and if not then we write them). The guys downstairs want to keep vendor specific products separate from each other because if there is an issue with an order we need to easily identify which vendor it was from (and also makes it super easy to count and track for me). Now I have no way of tracking the inventory in my inventory tracking sheet because everything is based off of "our ID." I used to be able to ctrl F and type in an ID to find it quickly and mark how many we have, now I cant. I also set the tracking sheet up to have a column to show the vendor and ID's that correspond to "our ID" because we need these numbers for ordering (which I also do). The guys upstairs however, who engineer everything, only need to know how much of a specific product we have in stock (hence why I needed to come up with a way to combine the products from different vendors/ids into 1 calculation). This also tells us exactly how much of that product we have in stock despite being from different vendors, which is great when I do the sales because I'm now not trying to look up 4 different vendors for 1 item. So I guess what it comes down to is I need a way to be able to track the inventory based off of the individual vendor ID's but also need to be able to see how much of that item we have across several vendor ID's. Does that make sense? I've attached the updated workbook. 

@Krista1228 

 

Power Pivot Solution

Yea_So_0-1629051974369.png