SOLVED

Vlookup and Sum Help

%3CLINGO-SUB%20id%3D%22lingo-sub-1854041%22%20slang%3D%22en-US%22%3EVlookup%20and%20Sum%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1854041%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20someone%20help%20me%20out%20with%20a%20forumla%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20enter%20an%20item%20%23%20on%20the%20Lookup%20sheet%20of%20the%20attached%20sample%20and%20have%20the%20YTD%20Forecast%20cell%20in%20B2%20return%20the%20sum%20of%20the%20YTD%20Totals%20from%20the%20Planning%20Sheet%20for%20the%20matching%20item%20%23%20and%20the%20forecast%20rows.%3C%2FP%3E%3CP%3EFor%20example%2C%20item%20%23%201234%20shows%20up%20in%203%20locations%20and%20I%20need%20to%20sum%20the%20forecast%20numbers%20for%20those%20locations.%26nbsp%3B%20The%20total%20returned%20should%20be%202694.%26nbsp%3B%20The%20YTD%20column%20for%20the%20forecast%20row%20is%20conditional%20formatted%20to%20green%20if%20that%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1854041%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1854105%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%20and%20Sum%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1854105%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F848930%22%20target%3D%22_blank%22%3E%40RHughes11569%3C%2FA%3E%26nbsp%3BTry%20this%20in%20B2%20on%20%22Lookup%22%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSUMIFS(Planning!D2%3AD46%2CPlanning!A2%3AA46%2CA2%2CPlanning!C2%3AC46%2C%22Forecast%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1854107%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%20and%20Sum%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1854107%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F848930%22%20target%3D%22_blank%22%3E%40RHughes11569%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSUMIFS(Planning!%24D%242%3A%24D%2446%2CPlanning!%24A%242%3A%24A%2446%2CA2%2CPlanning!%24C%242%3A%24C%2446%2C%22Forecast%22)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1854431%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%20and%20Sum%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1854431%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F848930%22%20target%3D%22_blank%22%3E%40RHughes11569%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%20PivotTable%20could%20be%20considered%20as%20an%20option%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20462px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231495i827CD19FFB731ADD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Can someone help me out with a forumla?

 

I'm trying to enter an item # on the Lookup sheet of the attached sample and have the YTD Forecast cell in B2 return the sum of the YTD Totals from the Planning Sheet for the matching item # and the forecast rows.

For example, item # 1234 shows up in 3 locations and I need to sum the forecast numbers for those locations.  The total returned should be 2694.  The YTD column for the forecast row is conditional formatted to green if that helps.

 

 

6 Replies
Highlighted
Best Response confirmed by RHughes11569 (Occasional Contributor)
Solution

@RHughes11569 Try this in B2 on "Lookup"

=SUMIFS(Planning!D2:D46,Planning!A2:A46,A2,Planning!C2:C46,"Forecast")

 

Highlighted

@RHughes11569 

=SUMIFS(Planning!$D$2:$D$46,Planning!$A$2:$A$46,A2,Planning!$C$2:$C$46,"Forecast")
Highlighted

@RHughes11569 

Perhaps PivotTable could be considered as an option

image.png

 

Highlighted

@Riny_van_Eekelen That works for me!  I was able to copy your formula into my sheet and then massage it a little to get it to work for my specific worksheet.  Thanks!

Highlighted

@Sergei Baklan Not that I know a ton about Pivot Tables yet either, but I'm trying to make this as plug & play as possible because some of the people that will be using it know very little about Excel.  I appreciate you helping out though.  I'm definitely learning as I go, so pivot tables are on my list.

Highlighted

@RHughes11569 

The minus of PivotTable is that user shall to refresh it after updating the data, formulas do recalculation automatically. At the same time that's quite powerful tool and this option better to keep in mind. Everything depends on concrete situation.