k3yn0t3
New Member
- Joined
- Oct 5, 2023
- Messages
- 42
- Office Version
- 365
- Platform
- Windows
Hi there. Could someone kindly assist me with an XLOOKUP formula I'm using to pull in data from a master tab to another sheet? I want to pull in data onto "Store 1" sheet based on:
Thank you and please find examples of my two sheets below:
Single Store Template Sheet
^I need to write formula to fill in the below table based on the "Master Database" Sheet's data
*This Sheet will only show Store 1 data
Master Database Sheet
^I need to pull data from here. Everything is hardcoded
- Store Number
- month
- year
- line item name (revenue, COGS, etc.)
Excel Formula:
=+XLOOKUP(1,('Data Master'!$B$7:$FZ$7='Store 1'!$B26)*('Data Master'!6:6='Store 1'!H$23)*('Data Master'!5:5='Store 1'!H$22),'Data Master'!R8:NA10)
Thank you and please find examples of my two sheets below:
Single Store Template Sheet
^I need to write formula to fill in the below table based on the "Master Database" Sheet's data
*This Sheet will only show Store 1 data
Store | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Status | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Opened | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Closed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
ST | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Dept | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Sq FT | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |||||
2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 (a) | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | ||||||
Revenue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
COGS | |
Master Database Sheet
^I need to pull data from here. Everything is hardcoded
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |||||||||
2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2016 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 | 2017 (a) | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2018 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | |||||||||
Store | Status | Opened | Closed | ST | Dept | Sq FT | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | Revenue | ||
1 | Oen | 1/1/2000 | na | NY | East | 5000 | 10,000 | 20,000 | 21,000 | 22,000 | 23,000 | 24,000 | 25,000 | 26,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | ||
2 | Oen | 1/1/2001 | na | NY | East | 6000 | 11,000 | 21,000 | 22,000 | 23,000 | 24,000 | 25,000 | 26,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | ||
3 | Oen | 1/1/2002 | 1/1/2006 | NY | East | 7000 | 12,000 | 22,000 | 23,000 | 24,000 | 25,000 | 26,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | 68,000 | ||
4 | Oen | 1/1/2003 | na | NY | East | 8000 | 13,000 | 23,000 | 24,000 | 25,000 | 26,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | 68,000 | 69,000 | ||
6 | Oen | 1/1/2004 | na | NY | East | 9000 | 14,000 | 24,000 | 25,000 | 26,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | 68,000 | 69,000 | 70,000 | ||
7 | Oen | 1/1/2005 | 1/1/2009 | CA | West | 10000 | 15,000 | 25,000 | 26,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | 68,000 | 69,000 | 70,000 | 71,000 | ||
8 | Oen | 1/1/2006 | na | CA | West | 11000 | 16,000 | 26,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | 68,000 | 69,000 | 70,000 | 71,000 | 72,000 | ||
9 | Oen | 1/1/2007 | na | CA | West | 12000 | 17,000 | 27,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | 68,000 | 69,000 | 70,000 | 71,000 | 72,000 | 73,000 | ||
10 | Oen | 1/1/2008 | 1/1/2012 | CA | West | 13000 | 18,000 | 28,000 | 29,000 | 30,000 | 31,000 | 32,000 | 33,000 | 34,000 | 35,000 | 36,000 | 37,000 | 38,000 | 39,000 | 40,000 | 41,000 | 42,000 | 43,000 | 44,000 | 45,000 | 46,000 | 47,000 | 48,000 | 49,000 | 50,000 | 51,000 | 52,000 | 53,000 | 54,000 | 55,000 | 56,000 | 57,000 | 58,000 | 59,000 | 60,000 | 61,000 | 62,000 | 63,000 | 64,000 | 65,000 | 66,000 | 67,000 | 68,000 | 69,000 | 70,000 | 71,000 | 72,000 | 73,000 | 74,000 |