Is It A Problem to Have Your Table Contain Reference Cells?

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,015
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I need to be able to take data from other sheets and then sort that output. I'm curious to know, if this will cause me any problems?

v2024.38-2.xlsm
ABCDEF
3ECM #Install LocationLighting LocationCategoryLED MeasureSubcategory
4100   
5200   
6300   
Lighting&Controls (JCPLRebates)
Cell Formulas
RangeFormula
A4:B6A4=Helper!A4
C4:C6C4=Input!D4
D4:D6D4=IFERROR((XLOOKUP(Helper!K4,Tbl_Area[MaskedPartNumber],Tbl_Area[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Decorative[MaskedPartNumber],Tbl_Decorative[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Downlight[MaskedPartNumber],Tbl_Downlight[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Exit_and_Emergencies[MaskedPartNumber],Tbl_Exit_and_Emergencies[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Flat_Panel[MaskedPartNumber],Tbl_Flat_Panel[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Flood_Light[MaskedPartNumber],Tbl_Flood_Light[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Garage_and_Canopy[MaskedPartNumber],Tbl_Garage_and_Canopy[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Highbay[MaskedPartNumber],Tbl_Highbay[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Linear[MaskedPartNumber],Tbl_Linear[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Lowbay[MaskedPartNumber],Tbl_Lowbay[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Strip[MaskedPartNumber],Tbl_Strip[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Troffer[MaskedPartNumber],Tbl_Troffer[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Vapor_Tight[MaskedPartNumber],Tbl_Vapor_Tight[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Wall_Mount[MaskedPartNumber],Tbl_Wall_Mount[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Wrap[MaskedPartNumber],Tbl_Wrap[JCPL_Category],XLOOKUP(Helper!K4,Tbl_A_Lamp[MaskedPartNumber],Tbl_A_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_BR_Lamp[MaskedPartNumber],Tbl_BR_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Candle_Lamp[MaskedPartNumber],Tbl_Candle_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_CFL_Lamp[MaskedPartNumber],Tbl_CFL_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Filament_Lamp[MaskedPartNumber],Tbl_Filament_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Globe_Lamp[MaskedPartNumber],Tbl_Globe_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_HID_Lamp[MaskedPartNumber],Tbl_HID_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_MR_Lamp[MaskedPartNumber],Tbl_MR_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Par_Lamp[MaskedPartNumber],Tbl_Par_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Linear_Lamp[MaskedPartNumber],Tbl_Linear_Lamp[JCPL_Category],XLOOKUP(Helper!K4,Recessed_Retrofit_Kits!$A$3:$A$14,Recessed_Retrofit_Kits!$U$3:$U$14,XLOOKUP(Helper!K4,#REF!,#REF!,XLOOKUP(Helper!K4,Tbl_Materials[MaskedPartNumber],Tbl_Materials[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Rental[MaskedPartNumber],#REF!,XLOOKUP(Helper!K4,Tbl_Accessory[MaskedPartNumber],Tbl_Accessory[JCPL_Category],XLOOKUP(Helper!K4,Tbl_Controls[MaskedPartNumber],Tbl_Controls[JCPL_Category])))))))))))))))))))))))))))))))),"")
E4:E6E4=IFERROR((XLOOKUP(Helper!K4,Tbl_Area[MaskedPartNumber],Tbl_Area[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Decorative[MaskedPartNumber],Tbl_Decorative[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Downlight[MaskedPartNumber],Tbl_Downlight[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Exit_and_Emergencies[MaskedPartNumber],Tbl_Exit_and_Emergencies[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Flat_Panel[MaskedPartNumber],Tbl_Flat_Panel[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Flood_Light[MaskedPartNumber],Tbl_Flood_Light[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Garage_and_Canopy[MaskedPartNumber],Tbl_Garage_and_Canopy[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Highbay[MaskedPartNumber],Tbl_Highbay[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Linear[MaskedPartNumber],Tbl_Linear[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Lowbay[MaskedPartNumber],Tbl_Lowbay[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Strip[MaskedPartNumber],Tbl_Strip[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Troffer[MaskedPartNumber],Tbl_Troffer[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Vapor_Tight[MaskedPartNumber],Tbl_Vapor_Tight[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Wall_Mount[MaskedPartNumber],Tbl_Wall_Mount[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Wrap[MaskedPartNumber],Tbl_Wrap[JCPL_Description],XLOOKUP(Helper!K4,Tbl_A_Lamp[MaskedPartNumber],Tbl_A_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_BR_Lamp[MaskedPartNumber],Tbl_BR_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Candle_Lamp[MaskedPartNumber],Tbl_Candle_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_CFL_Lamp[MaskedPartNumber],Tbl_CFL_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Filament_Lamp[MaskedPartNumber],Tbl_Filament_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Globe_Lamp[MaskedPartNumber],Tbl_Globe_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_HID_Lamp[MaskedPartNumber],Tbl_HID_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_MR_Lamp[MaskedPartNumber],Tbl_MR_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Par_Lamp[MaskedPartNumber],Tbl_Par_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Linear_Lamp[MaskedPartNumber],Tbl_Linear_Lamp[JCPL_Description],XLOOKUP(Helper!K4,Recessed_Retrofit_Kits!$A$3:$A$14,Recessed_Retrofit_Kits!$V$3:$V$14,XLOOKUP(Helper!K4,#REF!,#REF!,XLOOKUP(Helper!K4,Tbl_Materials[MaskedPartNumber],Tbl_Materials[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Rental[MaskedPartNumber],#REF!,XLOOKUP(Helper!K4,Tbl_Accessory[MaskedPartNumber],Tbl_Accessory[JCPL_Description],XLOOKUP(Helper!K4,Tbl_Controls[MaskedPartNumber],Tbl_Controls[JCPL_Description])))))))))))))))))))))))))))))))),"")
F4:F6F4=IFERROR((XLOOKUP(Helper!K4,Tbl_Area[MaskedPartNumber],Tbl_Area[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Decorative[MaskedPartNumber],Tbl_Decorative[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Downlight[MaskedPartNumber],Tbl_Downlight[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Exit_and_Emergencies[MaskedPartNumber],Tbl_Exit_and_Emergencies[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Flat_Panel[MaskedPartNumber],Tbl_Flat_Panel[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Flood_Light[MaskedPartNumber],Tbl_Flood_Light[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Garage_and_Canopy[MaskedPartNumber],Tbl_Garage_and_Canopy[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Highbay[MaskedPartNumber],Tbl_Highbay[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Linear[MaskedPartNumber],Tbl_Linear[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Lowbay[MaskedPartNumber],Tbl_Lowbay[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Strip[MaskedPartNumber],Tbl_Strip[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Troffer[MaskedPartNumber],Tbl_Troffer[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Vapor_Tight[MaskedPartNumber],Tbl_Vapor_Tight[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Wall_Mount[MaskedPartNumber],Tbl_Wall_Mount[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Wrap[MaskedPartNumber],Tbl_Wrap[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_A_Lamp[MaskedPartNumber],Tbl_A_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_BR_Lamp[MaskedPartNumber],Tbl_BR_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Candle_Lamp[MaskedPartNumber],Tbl_Candle_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_CFL_Lamp[MaskedPartNumber],Tbl_CFL_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Filament_Lamp[MaskedPartNumber],Tbl_Filament_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Globe_Lamp[MaskedPartNumber],Tbl_Globe_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_HID_Lamp[MaskedPartNumber],Tbl_HID_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_MR_Lamp[MaskedPartNumber],Tbl_MR_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Par_Lamp[MaskedPartNumber],Tbl_Par_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Linear_Lamp[MaskedPartNumber],Tbl_Linear_Lamp[JCPL_Subcategory],XLOOKUP(Helper!K4,Recessed_Retrofit_Kits!$A$3:$A$14,Recessed_Retrofit_Kits!$V$3:$V$14,XLOOKUP(Helper!K4,#REF!,#REF!,XLOOKUP(Helper!K4,Tbl_Materials[MaskedPartNumber],Tbl_Materials[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Rental[MaskedPartNumber],#REF!,XLOOKUP(Helper!K4,Tbl_Accessory[MaskedPartNumber],Tbl_Accessory[JCPL_Subcategory],XLOOKUP(Helper!K4,Tbl_Controls[MaskedPartNumber],Tbl_Controls[JCPL_Subcategory])))))))))))))))))))))))))))))))),"")
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Sorting data brought in from other sheets is not a problem. I'm going to be blunt: Those formulas are insane! I'm really trying to understand why you need 24 to 30 XLookup functions imbedded inside each other to get one result. Surely there has to be a way to create a cross reference.
 
Upvote 0
Sorting data brought in from other sheets is not a problem. I'm going to be blunt: Those formulas are insane! I'm really trying to understand why you need 24 to 30 XLookup functions imbedded inside each other to get one result. Surely there has to be a way to create a cross reference.
When I see formulas like this it makes my head spin. I like using Vba.
 
Upvote 0
Sorting data brought in from other sheets is not a problem. I'm going to be blunt: Those formulas are insane! I'm really trying to understand why you need 24 to 30 XLookup functions imbedded inside each other to get one result. Surely there has to be a way to create a cross reference.

ha! if you have another way, I am all ears. I don't know any VBA so I've tried to keep it all formula based.
 
Upvote 0
Are you saying you have to lookup parts across 24 different tables to get a result? I can't see your data so it would be impossible for me to offer any kind of solution.
 
Upvote 0
All you have told us is:
Quote:
"I need to be able to take data from other sheets and then sort that output"

To help you we need a lot more details. And without asking us to read your formulas.
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,147
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