Formula to assign category based on multiple criteria and then picking highest value

redsheep79

New Member
Joined
May 23, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Please see attached example.

I'm trying to assign a category to each person based on which categories they have costs in. where clients have costs against multiple categories the main category they will be assigned will be determined as:

If someone has entry in Residential or Home this will be the category assigned to them

If someone has entries in any of the the other columns the category assigned to them will be the one that has the highest value

I would like to have a formula in Column H to automatically do this, if possible. If needed, I could filter out and Residential or Home and only apply formula to the remaining to reduce a layer of any formula.

Thank you.
 

Attachments

  • ExampleImage.jpg
    ExampleImage.jpg
    53.3 KB · Views: 22

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

could this work for you ?

Excel Formula:
=IFS(C4<>"","Residential",D4<>"","Home",OR(E4<>"",F4<>"",G4<>""),XLOOKUP(MAX(E4:G4),E4:G4,E$3:G$3))

cheers
Rob
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Formula to pick highest value form multiple columns
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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