Hello,
Apologies if this is basic or has already been answered, but I'm stuck on getting a formula correct. In essence, I have a sheet with:
1. A tab (Tab1) with information entered for each month
Month Sales Cost
Jan-18 45 3
Feb-18 22 1
etc
2. Anther tab (Tab2) listing each text month and the corresponding date
Jan Jan-18
Feb Feb-18
etc
3. A final tab where the user enters the month and a vlookup/match pulls that month's information
Month: Jan
Sales: =VLOOKUP(VLOOKUP((B1,Tab2!A1:B12,2,0),Tab1!A1:C12,Match(A2,Tab1!A1:A12,0),0)
Cost: =VLOOKUP(VLOOKUP((B1,Tab2!A1:B12,2,0),Tab1!A1:C12,Match(A3,Tab1!A1:A12,0),0)
etc
My current formula works. What I would like to do is add the ability to indicate either a month or a quarter. I have added the below to Tab2
Q1 Jan-18
Q1 Feb-18
Q1 Mar-18
Q2 Apr-18
etc
But I'm now stuck on how to change my vlookup to allow for multiple results. I assume I need to change the formula to a sumif or sumifs, but I don't know how to incorporate that with the vlookup to tell the formula what months are associated with Q1.
Thank you in advance for your help! I hope that the formatting looks OK, I can't download any of the applications that would allow me to post screenshots.
Apologies if this is basic or has already been answered, but I'm stuck on getting a formula correct. In essence, I have a sheet with:
1. A tab (Tab1) with information entered for each month
Month Sales Cost
Jan-18 45 3
Feb-18 22 1
etc
2. Anther tab (Tab2) listing each text month and the corresponding date
Jan Jan-18
Feb Feb-18
etc
3. A final tab where the user enters the month and a vlookup/match pulls that month's information
Month: Jan
Sales: =VLOOKUP(VLOOKUP((B1,Tab2!A1:B12,2,0),Tab1!A1:C12,Match(A2,Tab1!A1:A12,0),0)
Cost: =VLOOKUP(VLOOKUP((B1,Tab2!A1:B12,2,0),Tab1!A1:C12,Match(A3,Tab1!A1:A12,0),0)
etc
My current formula works. What I would like to do is add the ability to indicate either a month or a quarter. I have added the below to Tab2
Q1 Jan-18
Q1 Feb-18
Q1 Mar-18
Q2 Apr-18
etc
But I'm now stuck on how to change my vlookup to allow for multiple results. I assume I need to change the formula to a sumif or sumifs, but I don't know how to incorporate that with the vlookup to tell the formula what months are associated with Q1.
Thank you in advance for your help! I hope that the formatting looks OK, I can't download any of the applications that would allow me to post screenshots.