Finding the quarter of the year according to a campaign number

domanteb

New Member
Joined
Jun 1, 2018
Messages
1
Hey guys!
I am doing an assignment and I have troubles with one of the questions.
The question is asking to use this table: https://imgur.com/7JjrQ5H
And then to find which quarter matches the campaign number, using a formula
https://imgur.com/ZDUCN0b

I have tried to make a new table and use vlookup but it does not seem to work.
How could I fill in the quarters using the table provided that contains the ranges?

Thank you so much in adcance!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Assuming you have Qtr table as this:



Unknown
BCD
14QtrCampaign
15FromTo.
16Q114
17Q259
18Q31013
19Q41417
Sheet9



Then You can use this:



Unknown
ABCDEFGHI
1CampaignAcc No.SalesOrdersCustomersZoneYearCampaign of the yearQtr
22015-14700434022950220152Q1
32015-147004396818503201514Q4
42015-1470043516013502201511Q3
52015-1470043221042505201511Q3
62015-14700439950950720157Q2
72015-14700433264751020153Q1
82015-147004394903507201515Q4
92015-1470043653312508201512Q3
102015-147004392928504201515Q4
112015-14700436384650620153Q1
Sheet9
Cell Formulas
RangeFormula
I2{=INDEX($B$16:$B$19,MATCH(1,(H2>=$C$16:$C$19)*(H2<=$D$16:$D$19),0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Or You can use

Assuming you have Qtr table as this:



Unknown
BCD
14QtrCampaign
15FromTo.
16Q114
17Q259
18Q31013
19Q41417
Sheet9



Then You can use this:



Unknown
ABCDEFGHI
1CampaignAcc No.SalesOrdersCustomersZoneYearCampaign of the yearQtr
22015-14700434022950220152Q1
32015-147004396818503201514Q4
42015-1470043516013502201511Q3
52015-1470043221042505201511Q3
62015-14700439950950720157Q2
72015-14700433264751020153Q1
82015-147004394903507201515Q4
92015-1470043653312508201512Q3
102015-147004392928504201515Q4
112015-14700436384650620153Q1
Sheet9
Cell Formulas
RangeFormula
I2=LOOKUP(H2,$C$16:$C$19,$B$16:$B$19)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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