SOLVED

Summing - Vlookup and Dates

%3CLINGO-SUB%20id%3D%22lingo-sub-2314120%22%20slang%3D%22en-US%22%3ESumming%20-%20Vlookup%20and%20Dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314120%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Experts%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20a%20formula%20that%20will%20sum%20values%20based%20on%20a%20the%20expected%20monthly%20dollar%20increases%20or%20decreases%20contained%20in%20a%20table%20for%20a%20matrix%20of%20companies.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20it%20would%20be%20some%20sort%20of%20combination%20of%20Vlookup%20and%20functionality%20added%20for%20the%20date%20of%20the%20amendment%20(that%20is%20the%20hard%20part).%26nbsp%3B%20Basically%2C%20I%20have%20an%20initial%20amount%20of%20%2410%20for%20companyA%20and%20this%20amount%20is%20expected%20to%20increase%20by%20%24XX%20on%20a%20certain%20date%20and%20decrease%20by%20%24XX%20on%20a%20certain%20date.%26nbsp%3B%20My%20table%20should%20populate%20based%20on%20these%20expected%20increases%2Fdecreases.%26nbsp%3B%20It%20is%20probably%20much%20easier%20to%20see%20the%20file%20than%20to%20explain.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKindly%20see%20attached%20file.%26nbsp%3B%20Let%20me%20know%20if%20you%20have%20any%20questions.%26nbsp%3B%20grateful%20for%20your%20help.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Tony2021_1-1619893720324.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277301i934F98150A51C451%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Tony2021_1-1619893720324.png%22%20alt%3D%22Tony2021_1-1619893720324.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%3CLINGO-LABS%20id%3D%22lingo-labs-2314120%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-2314139%22%20slang%3D%22en-US%22%3ERe%3A%20Summing%20-%20Vlookup%20and%20Dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314139%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20need%20to%20try%20this%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3D%24G2%20%2B%20Sumifs(%24C%242%3A%24C%244%2C%24B%242%3A%24B%244%2C%22%26lt%3B%3D%22%26amp%3BH%241%2C%24A%242%3A%24A%244%2C%24F2)%3CBR%20%2F%3E%3CBR%20%2F%3EAttached%20the%20file%20with%20the%20solution.%20Hope%20it%20addresses%20your%20need.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314148%22%20slang%3D%22en-US%22%3ERe%3A%20Summing%20-%20Vlookup%20and%20Dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314148%22%20slang%3D%22en-US%22%3EViz%2C%20wow%20that%20is%20amazing!%20Thank%20you%20so%20much%20for%20the%20quick%20response%20and%20perfect%20formula.%20It%20gives%20me%20exactly%20what%20I%20need.%20I%20will%20need%20to%20incorporate%20into%20my%20production%20file.%20I%20dont%20forsee%20any%20issues.%20Thank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314164%22%20slang%3D%22en-US%22%3ERe%3A%20Summing%20-%20Vlookup%20and%20Dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314164%22%20slang%3D%22en-US%22%3EYou%20are%20welcome%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello Experts,

 

I need a formula that will sum values based on a the expected monthly dollar increases or decreases contained in a table for a matrix of companies.  

 

I think it would be some sort of combination of Vlookup and functionality added for the date of the amendment (that is the hard part).  Basically, I have an initial amount of $10 for companyA and this amount is expected to increase by $XX on a certain date and decrease by $XX on a certain date.  My table should populate based on these expected increases/decreases.  It is probably much easier to see the file than to explain. 

 

Kindly see attached file.  Let me know if you have any questions.  grateful for your help. 

Tony2021_1-1619893720324.png

 

 

6 Replies
best response confirmed by Tony2021 (Occasional Contributor)
Solution

You need to try this:

=$G2 + Sumifs($C$2:$C$4,  $B$2:$B$4, "<="&H$1,  $A$2:$A$4, $F2)

I have attached the file with the solution. Hope it addresses your need.

Viz, wow that is amazing! Thank you so much for the quick response and perfect formula. It gives me exactly what I need. I will need to incorporate into my production file. I dont forsee any issues. Thank you!
You are welcome

@Viz 

Hi Viz,

I might have an issues.  Sorry.  Appreciate when you have a sec.  When I add additional dates to the data set for some reason the sum doesnt appear to be correct anylonger but only if I add dates.
If could kindly check out the attached I would greatly appreciate.

thank you...

@Tony2021 

 

Hi Tony, actually what is happening that for BOA you have positive entry 1000 on 10-May and negative entry of 3000 on 01-June. The formula I gave takes both the amendments while giving the applicable price for 01-June (so, 1-June price 1000 + 1000 - 3000 = -1000)

 

In your manual calculation, you have ignored the 10-May amendment. Is it that you want only the latest amendment to be considered if there are multiple amendments between two dates?

@Viz sorry I found out my problem.  It might be difficult to explain but in my production file where all of the data resides the date was formated as MMM - yy and there was not a specific day while in the file I posted there was a specific day and I didnt catch that there was a difference in date formats.  Sorry for any confusion .  This drove me nuts.