?
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
Medium Priority
?
1,050 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 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