Advanced functions

doobia25

New Member
Joined
Apr 16, 2023
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have an excel data with a column containing customer IDs (A), another containing account numbers (B), another containing the ratings of each account number (C) and another blank column containing contagion rating of the accounts (D) (this is the column to be filled with a function). Note that a customer ID can have several account numbers. Also note that the rating is from 1 to 5 with 1 being the best and 5 being the worst. Also note that the rating is by account number and not by customer ID. Now i want to apply a contagion rule such that excel looks through the ratings of accounts belonging to the same customer ID and return in the column D for all the accounts belonging to the same customer ID the worst rating amongs the account numbers. For example if customer ID 0012 is linked to five different accounts with ratings of say 3, 4, 2, 5, and 4, under column D excel should out 5 which is the worst rating for the respective rows of the account numbers. There will be another customer with say ID 0014 linked to five 3 account numbers with ratings 2, 1 and 3. excel should recognized that this is a different customer ID and apply 3 in column D for the account numbers for this customer ID and so on and so forth.
Also note that i want to apply this function and copy through the rest of the rows noting that i you move down the rows the customer ID changes with a set of different account numbers with their respective different ratings.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
i think a MAXIFS) should work

Book17
ABCD
1custonmer IDAccount noratingcontagion
2A1115
3A1235
4A1355
5B1433
6B1533
7C1613
8C1723
9C1813
10C1933
11C11023
12C11113
Sheet1
Cell Formulas
RangeFormula
D2:D12D2=MAXIFS($C$2:$C$12,$A$2:$A$12,A2)
 
Upvote 0

Forum statistics

Threads
1,215,499
Messages
6,125,163
Members
449,210
Latest member
grifaz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top