Lookup

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
150
Office Version
  1. 365
Platform
  1. Windows
I have a list of headings of which each has various subheadings, as per the example below. On my spreadsheet in Cell B3, I want to put the subheading i.e "Supplements" and I want Cell F3 to know that comes under ANIMALS (VETERINARY) and display ANIMALS (VETERINARY), but I'm not sure whether I would use LOOKUP for this?
ANIMALS (VETERINARY)
Medication
Supplements
Annual Vaccinations
Animal Transportation
Animal Hospitalisation
Vet Consultation
Vet Transportation
Animal Insurance
Parasite Treatment
ANIMALS (FOOD)
Chicken
Game (Alloa meat)
Game (H W Gutter)
Meat Handling Wear
Domestic Animal Feed
Dog Feed
Meat Preperation Equipment
Cleaning Materials
ANIMALS (HABITAT)
Teff
Hay
Enrichment
Dens & Platforms
Fly Catchers
 
When you look at the top of a sheet are the headers A,B,C etc or 1,2,3 etc?
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Maybe an error when you're changing the commas to semicolons. See if this one works.
Excel Formula:
=LET(rng;$A$1:INDEX($A$1:$A$25;MATCH(B3;$A$1:$A$25;0));LOOKUP(2;1/(EXACT(rng;UPPER(rng)));rng))
 
Upvote 0
My apologies for not responding sooner, I was travelling and unfortunately the internet in deep Africa is not good. I have now got the formula working and very much appreciate your input.
 
Upvote 0

Forum statistics

Threads
1,215,688
Messages
6,126,213
Members
449,301
Latest member
rcocrane99

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