I have dates like:
21.05.2014
21.05.2014
21.05.2015
A1:A3
and the coresponding numbers next to it
100
60
200
B1:B3
I need a SUM of the number if and only if the year is 2014, or 2015, etc. How do I do that?
I have dates like:
21.05.2014
21.05.2014
21.05.2015
A1:A3
and the coresponding numbers next to it
100
60
200
B1:B3
I need a SUM of the number if and only if the year is 2014, or 2015, etc. How do I do that?
If those are actual dates (formatted to look that way), then:
Otherwise, if Col_A contains numeric text![]()
Please Login or Register to view this content.
Is that something you can work with?![]()
Please Login or Register to view this content.
If your dates are text then you can use this:
If they are dates and just formatted like that, then you will need to use this:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.
<---Click * Add Reputation for all helpful comments. It's like giving a smile.
Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.
Almost,
the sum product doesn't work, because I need to seperate the numbers.
I have a column for 2014, 2015, 2016, etc.
In column 2014 only the sum of the numbers from 2014 is put in, and so on.
Maybe something like this would be of interest:
Formula:
Please Login or Register to view this content.
A B C D E 121.05.2014 100 2014 160 221.05.2014 60 2015 200 321.05.2015 200
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
Or this
enter formula in C2 and pull it to the right
=SUM(INDEX((--RIGHT($A$2:$A$4,4)=C$1)*($B$2:$B$4),0))
Row\Col A B C D 1Date Value 2014 2015 221.05.2014 100 160 200 321.05.2014 60 421.05.2015 200
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks