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
832 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:anthonymellorfca
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
Comment Utility
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:anthonymellorfca
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now