Solved

populating value in last record based on multiple conditions

Posted on 2012-03-28
3
221 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

13 Experts available now in Live!

Get 1:1 Help Now