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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,223,885
Messages
6,175,182
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