Excel Formula to Look up a category, then see if it has a certain subcategory and then spit out value

5472dch

New Member
Joined
Jul 29, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet that is formatted a way to make simpler functions not possible (as far as I know). I don't want to have to reformat it nor do I want to use macros. The ranges are dynamic so I am unable to just hardcode the locations of the information I want. My plan/hope here is to have the data be imported and autofill tables. I included a screenshot of the weird formatting.

For example I want to use a formula to find the value in Column C for Job6 for Name1.

Thank you for your time!
 

Attachments

  • Screenshot 2024-07-29 165548.jpg
    Screenshot 2024-07-29 165548.jpg
    64.2 KB · Views: 10

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Please test this (lookup values are hardcoded based on your example but you can replace them with cell references based on your needs):

Excel Formula:
=XLOOKUP("Name1"&"Job6",SCAN("",A1:A23,LAMBDA(a,b,IF(b<>"",b,a)))&B1:B23,C1:C23)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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