Z_Sutcliffe123
New Member
- Joined
- Apr 5, 2019
- Messages
- 8
I have 2 sheets on my workbook. Sheet 1 has all the master data. I'm using Sheet 2 to pull data from Sheet 1.
Sheet 1 has the date in Column A, that date is converted to month text in Column B and in Column C I have the corresponding data for those dates - in this case a revenue number.
On Sheet 2 I have a dropdown list with the month names in (they definitely match the names in Column B on Sheet 1) in cell A2. I'm trying to pull in the corresponding revenue numbers from Column C on Sheet 1 when I select a certain month in the dropdown.
At the moment my array formula seems to be working but for one problem. I have copied it down 31 cells on Sheet 2 to account for the months with those most days. However, in months with fewer days like February it's displaying 3 days of data from March in the bottom 3 cells. Is there anyway to stop it including these March days? I've got no idea why it's happening but I suspect it's some error I've made with the COUNTIF part of the formula.
This is the formula I'm using:
=INDEX('Sheet1'!C1:C3000, MATCH(0, IF($A$2='Sheet1'!$B:$B,COUNTIF($B$2:$B$2,‘Sheet1’!$C:$C),""), 0))
Any help would be greatly appreciated.
Sheet 1 has the date in Column A, that date is converted to month text in Column B and in Column C I have the corresponding data for those dates - in this case a revenue number.
On Sheet 2 I have a dropdown list with the month names in (they definitely match the names in Column B on Sheet 1) in cell A2. I'm trying to pull in the corresponding revenue numbers from Column C on Sheet 1 when I select a certain month in the dropdown.
At the moment my array formula seems to be working but for one problem. I have copied it down 31 cells on Sheet 2 to account for the months with those most days. However, in months with fewer days like February it's displaying 3 days of data from March in the bottom 3 cells. Is there anyway to stop it including these March days? I've got no idea why it's happening but I suspect it's some error I've made with the COUNTIF part of the formula.
This is the formula I'm using:
=INDEX('Sheet1'!C1:C3000, MATCH(0, IF($A$2='Sheet1'!$B:$B,COUNTIF($B$2:$B$2,‘Sheet1’!$C:$C),""), 0))
Any help would be greatly appreciated.