Help returning a value if 2 conditions are met in a different row

JDHwood

New Member
Joined
Jun 5, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am working with a data set of over 1500 accounts. I need to simplify the Status column such that if a Customer has a "High" or "Low" status it will be returned in the Status_Simplified column for all matching Customers instead of "NA", "Soft", etc. Absence of a "High" or "Low" would simply be "NA". For example, for Customer ABC I want Status Simplified to be "High" for all 3 Customer ABC accounts. For Customer XYZ, Status_Simplified should be "Low".

Figured I would start with =IF(OR(B2="High",B2="Low"),B2,.......but not sure what to put for the FALSE statement. I can use a Helper column if that is needed.

Note, data will always be in order by Customers. But Status could be in any order within a customer.

Office 265

Thanks in advance


ABC
CustomersStatusStatus_Simplified
Customer ABCHighHigh
Customer ABCNAHigh
Customer ABCSoftHigh
Customer XYZNALow
Customer XYZLowLow
hundreds more unique customers........
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi @JDHwood.
Welcome to the MrExcel forum. Please accept my warmest greetings and sincere hope that all is well.​

Try:
varios 05jun2023.xlsm
ABC
1CustomersStatusStatus_Simplified
2Customer ABCHighHigh
3Customer ABCNAHigh
4Customer ABCSoftHigh
5Customer XYZNALow
6Customer XYZLowLow
7Customer bNANA
8Customer bSoftNA
9Customer CSoftNA
10Customer 123HighHigh
11Customer 123LowHigh
12Customer 123NAHigh
Hoja6
Cell Formulas
RangeFormula
C2:C12C2=IF(COUNTIFS(A:A,A2,B:B,"High"),"High",IF(COUNTIFS(A:A,A2,B:B,"Low"),"Low","NA"))


Note:
If a client has High and Low, the formula, what status should it put?
The above formula puts High.

--------------
Let me know the result and I'll get back to you as soon as I can.
Cordially
Dante Amor
--------------​
 
Upvote 0
Solution
Thank you so much. I should have clarified. There should be no situation resulting in a single customer having both High and Low status. In the off chance there was I would default it to High.
 
Upvote 0
Thank you so much. I should have clarified. There should be no situation resulting in a single customer having both High and Low status. In the off chance there was I would default it to High.
So the formula works.
Try the formula and comment the result.
:cool:
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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