usnapoleon
Board Regular
- Joined
- May 22, 2014
- Messages
- 107
- Office Version
- 365
- Platform
- Windows
Hello, please help me out. I am using Office 2013 on Windows 7
I have a spreadsheet of data that encompasses data for a month. It's row-oriented, but each day uses 3 columns. Here's an example
<tbody>
</tbody>
So my actual spreadsheet has a lot more rows that continue downward, this is just a quick example of how the data is laid out.
The spreadsheet has 31 days for the month, so May 2nd would be the next 3 columns to the right, and so on after that. At the very end of the columns, after day #31, there are 3 blank columns I am trying to formulate, representing 'Today'. I have an input area where I can input the day of the month (ex. 5, 12, 27 ... basically any day 1-31) and whatever number I input is considered as 'Today'. So if I input 1, then the data from May 1st (the data above in this example) will populate my 'Today' rows and columns, a mirror image. If I change the input to 2, then it will do the same for May 2nd's data.
My issue is my formula. =HLOOKUP(C$2,Setup!L$946:CZ$1389,2,FALSE)
C$2 is the input area where I pick my day.
The 2 (towards the end, before 'False') changes by 1 as it goes down row to row
So I can get the formulas to work for the data column on the left (the occupancy column), but not the other 2 rows. This is because they all share same lookup value. In the Hlookup table array I tried to distinguish the 3 columns with something like 1a 1b 1c, but the formula didnt like that so I had to use 1 1 1.
Can someone please help me?
I have a spreadsheet of data that encompasses data for a month. It's row-oriented, but each day uses 3 columns. Here's an example
Site A1 | May 1 2013 | ||
Occupancy | Revenue | Avg Daily Rate | |
room type 1 | 2 | 1500 | 750 |
room type 2 | 3 | 2467 | 822.33 |
room type 3 | 7 | 9873 | 1410.43 |
<tbody>
</tbody>
So my actual spreadsheet has a lot more rows that continue downward, this is just a quick example of how the data is laid out.
The spreadsheet has 31 days for the month, so May 2nd would be the next 3 columns to the right, and so on after that. At the very end of the columns, after day #31, there are 3 blank columns I am trying to formulate, representing 'Today'. I have an input area where I can input the day of the month (ex. 5, 12, 27 ... basically any day 1-31) and whatever number I input is considered as 'Today'. So if I input 1, then the data from May 1st (the data above in this example) will populate my 'Today' rows and columns, a mirror image. If I change the input to 2, then it will do the same for May 2nd's data.
My issue is my formula. =HLOOKUP(C$2,Setup!L$946:CZ$1389,2,FALSE)
C$2 is the input area where I pick my day.
The 2 (towards the end, before 'False') changes by 1 as it goes down row to row
So I can get the formulas to work for the data column on the left (the occupancy column), but not the other 2 rows. This is because they all share same lookup value. In the Hlookup table array I tried to distinguish the 3 columns with something like 1a 1b 1c, but the formula didnt like that so I had to use 1 1 1.
Can someone please help me?