?
Solved

populating value in last record based on multiple conditions

Posted on 2012-03-28
3
Medium Priority
?
283 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 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