Solved

populating value in last record based on multiple conditions

Posted on 2012-03-28
3
233 Views
Last Modified: 2012-04-08
Dear experts Need a formulae
1.      which checks for every unique value in column A (variable) and
2.      at the same check for value not equal to 1 under column B,
3.       and then post 10% in column D.but
4.       IF there are multiple records for a value in column A with column B <>1,
5.      then the last record should get the posting.
6.      In addition, if there is only one occurrence of a value under column A, and column B<>1, then 10% will be populated under column D.
7.      That is no occurrence in column B=1 will get 10%.

thank you
value-in-the-last-record-with-co.xlsx
0
Comment
Question by:Excellearner
  • 2
3 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 37780259
If this question is different from your previous question, can you explain why there is no value in row 11 and why there are values in rows 12, 13, 14?
0
 

Author Comment

by:Excellearner
ID: 37780307
ssaqibh,

thank you for the observation.

OK in my example, value should have been in row 12 and not in 11,
The reason 13 and 14 do not have values is because these are records which have 1 against them in column B. Even if the values in a13 and a14 repeat and have value 1 against them under column B, there would no value.

Which means that if any cell has value 1 in column B, then they will not have any value in column D.

Thank you
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 37780334
Then try

=IF(B2<>1,IF(COUNTIFS(A:A,A2,B:B,"<>1")=COUNTIFS($A$1:A2,A2,$B$1:B2,"<>1"),10%,""),"")
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

910 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

23 Experts available now in Live!

Get 1:1 Help Now