Find value according to different criteria and sum

riskier4ra

Board Regular
Joined
Dec 5, 2017
Messages
101
Hey there, anyone know how I can do the following? My guess is I would use Index Match but not sure how to involve the date aspect.

I need to sum some values that match by a common symbol under two different headings, but only if they fall within the same calendar year.

So. If sym A matches sym B check date for year and if the same sum the value of C1 & G1. If year in After does not match the year found in Before do nothing. Do not want to use SUMIF, would prefer to use SUMPRODUCT

Heading = Before
A1= Date
B1= Sym
C1= Numerical Value

Heading = After
E1= Date
F1= Sym
G1=Numerical Value

Thanks for any help you all can give,
Risk
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
delete the validation list and enter a year manually ( for test purposes )

Did that. All the other stuff still works, but that cell just produces zero. The symb in M2 is the same as the symb entered in column B. M2 is Regular case, and in B:B its all upper case. I have tried to change that as well to see if that would make a difference. But still zero.
 
Upvote 0
try entering the year as '2018 as well as a date

I tried using 'before the year. It didnt return the result in M3 where the formula is being used and it didnt break anything else.

I tried using a long form date and it didnt produce anyting in M3 and it broke all the other things we did.

I have an Idea. Im pretty good at reverse engineering what other people do and make it work for myself the way I need it too.

Since you never actually created a working example with the sym criteria, would it be possible that you would and I can see it actually work?
 
Upvote 0
try entering the year as '2018 as well as a date

I have another SUMPRODUCT formula I use another way that allows me to search and sum on a sym but I have no Idea how I would incorporate it doing it based on a year.


I use =SUMPRODUCT(--('[file]sheetname'!range=symcelllocation),'[file]sheetname'!range)

So it basically looks down the range and finds all occurrences of a symbol and only sums the values using that symbol. This is what I use in the current setup that uses a basic calendaring system that I am trying to get away from. It works but is has many limitations which cause defects I want to cure.
 
Upvote 0
what are the symbols ? I still don't know what you are actually doing ?

Trying to collect values according to different needs and present it in an organized way that makes sense to me.

When I say symbols they arent anything more than text. For example the recent sumproduct formula I showed you that I use on another part of my project looks for the month name so it cannot pull the wrong data into a data table that I developed. This new need has thrown me a little bit of a curve ball but also an opportunity to turn the entire system into a single sheet ledger style system instead of a 12 month sheet that limits my data entry, and this is where your wisdom is coming to into play.

We found that if we ran out of space in a month we would have to start combining entries and that undermines part of my long term goals.

Its not something that I can explain simply, I have been working on this project for about 4 years with about 30 months of actual nonstop work in it. Over the winter I got into something new and thought it would be a perfect opportunity to develop it into my project so this is where we are.

The symbol part is not needed but would be extremely useful, and then there is one last goal to get all the fields I am pulling data into with these formulas to look at the whole picture and tell me what it is, instead of just by year or by month. If you have contact information you want to share, since you have helped me with a part of this, when its complete I will be happy to send you a copy for your review. Who knows, you may even be able to help take it to the next level. It is about 99% done, at least this part of it. It has 3 big parts, with the first being 99% complete. The ledger system will take it to the next level and later I intend to convert it to a form type of system, and would actually, if I ever have the money to pay someone, like to turn it into a php/mysql website. I know back in the day, I think office 98, we use to be able to save these worksheets as html docs we could actually use but they took that away and now you have to pay people to do it... I got into the computer scene around 3.1 right before windows 95 came out, and then the internet. Actually had the ability to act on bulletin board systems. Something an old brewer like yourself could appreciate, im sure. I ended up later getting my MCSE+I on the original NT track. Just sharing :0)
 
Upvote 0
I will post a "example" spreadsheet in a few minutes and you can clarify further - this forum does not allow off forum stuff - sorry.
 
Upvote 0
I will post a "example" spreadsheet in a few minutes and you can clarify further - this forum does not allow off forum stuff - sorry.

Yeah I noticed I couldnt private message you. Kind of strange but its their show. I appreciate having a place to get assistance on this. Does it allow links to sources like say a video where I can show you what Im talking about that someone else has done?
 
Upvote 0
datepurchasessalespurchasessales
09/10/2018476801/10/20188671256
20/10/201848470101/11/2018556806
31/10/201833648701/12/20189871430
11/11/201811817101/01/201911081605
22/11/201843863501/02/2019391566
03/12/201849671901/03/20198981300
14/12/201830444001/04/2019564816
25/12/201818727101/05/2019450651
05/01/201925737201/06/20198511233
16/01/201949071001/07/20198291201
27/01/201936152301/08/20198941295
07/02/201927439701/09/2019590855
18/02/201911716901/10/201900
01/03/201944264001/11/201900
12/03/20199213301/12/201900
23/03/2019364527
03/04/2019176255898513014
14/04/2019131189
25/04/201925737221999
06/05/201968
17/05/2019296429
28/05/2019148214
08/06/2019240348
19/06/2019492713
30/06/2019119172
11/07/2019464672
22/07/2019365529
02/08/2019119172you can add departments, stock types, anything
13/08/2019437633
24/08/2019338490and make multiple dahboard tables
04/09/2019252365
15/09/2019338490or have a query sheet
898513014where you enter the month, stock type etc

<colgroup><col><col span="7"><col><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,847
Members
449,471
Latest member
lachbee

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