Solved

Make this against LAST item? =IF(COUNTIF(A$1:A1,A1)=1,SUMIF(A:A,A1,B:B),"")

Posted on 2013-06-03
2
929 Views
Last Modified: 2013-06-04
from another Q_28146015
Do I need a sum on each row even if A1 is repeated? No.
I could invoke SUMIF just on the first row for each repeated value,

 i.e. like

=IF(COUNTIF(A$1:A1,A1)=1,SUMIF(A:A,A1,B:B),"")

Question:
What I would like is the sumif value against the LAST instance of the matching criterion.
Blank criterion  to refer to a different column, same row.
0
Comment
Question by:Anthony Mellor
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39217101
If you are using a finite number of rows (say 1000 but you can adjust that) then try

=IF(COUNTIF(A1:A$1000,A1)=1,SUMIF(A$1:A1,A1,B$1:B1),"")

or for an indefinite number of rows

=IF(COUNTIF(A$1:A1,A1)=COUNTIF(A:A,A1),SUMIF(A$1:A1,A1,B$1:B1),"")

regards, barry
0
 
LVL 9

Author Comment

by:Anthony Mellor
ID: 39218482
this is the one I wanted, points for this: =IF(COUNTIF(A$1:A1,A1)=COUNTIF(A:A,A1),SUMIF(A$1:A1,A1,B$1:B1),"")

thanks

are you sure about that first one working with last item?

follow up in a moment
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question