KingtheJones

New Member
Joined
May 17, 2018
Messages
3
Hello,

First time post, long time user here so please be kind if I don't follow correct protocol.

I am creating a forecast budget and need to amend to below formula to include a VLOOKUP parameter.

My current formula works to produce the $ value from A2 if the date in B2 falls between the date options in C2 and D2:
<d$1),$a2,0))
=(IF(AND($B3>=C$2,$B3< d$2),$a3,0))

I would like to amend the spreadsheet so that B2 now contains one of two text options (fortnightly or monthly). I have set up a new tab with those two headings and beneath the monthly a list of dates (A2 = 01/06/18, A3 = 01/07/18 and so on) and the fortnightly column starts at 2/05/18(B2), B3 = 30/05/18 etc.

I cannot for the life of me add a VLOOKUP parameter and have the formula work. :oops:
The first half of the below table shows how the first formula works and the second half (in red) is what I want it to look like/do. Using the VLOOKUP data in the second table at the end:

ABCDEFG
1Amount Date ORWEEK STARTING
2
$
Period
30/04/2018
7/05/201814/05/201821/05/201828/05/2018
31,0001/05/20181,000----
41,0006/05/2018-1,000---
51,00021/05/2018---1,000-
6
1,000
Monthly
1,000
-
-
-
1,000
7
1,000
Monthly
1,000
-
-
-
1,000
8
1,000
Fortnightly
1,000
-
1,000
-
1,000

<tbody>
</tbody>

VLOOKUP DATA:

Monthly
Fortnightly
1/06/201816/05/2018
1/07/201830/05/2018
1/08/201813/06/2018
1/09/201827/06/2018
1/10/201811/07/2018
1/11/201825/07/2018
1/12/20188/08/2018
1/01/201922/08/2018
1/02/20195/09/2018
1/03/201919/09/2018
1/04/20193/10/2018
1/05/201917/10/2018
1/06/201931/10/2018
1/07/201914/11/2018
1/08/201928/11/2018
1/09/201912/12/2018
1/10/201926/12/2018
1/11/20199/01/2019
1/12/201923/01/2019
1/01/20206/02/2019
1/02/202020/02/2019

<tbody>
</tbody>

Any help would be amazing; thank you!
:pray:

Regards,
Loren </d$2),$a3,0))></d$1),$a2,0))
:wink:
 
Last edited by a moderator:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
needs some clarification.

how's the 1,000 in C6 come from?
 
Upvote 0
Ah, I'm a donkey; second tab VLOOKUP data should have started back further:

VLOOKUP DATA:

MonthlyFortnightly
1/04/201818/04/2018
1/05/20182/05/2018

<tbody>
</tbody>

1/06/201816/05/2018
1/07/201830/05/2018
1/08/201813/06/2018
1/09/201827/06/2018
1/10/201811/07/2018

<tbody>
</tbody>

But please note that I wrote the 1,000 in there --- the formula didn't work so the amount wasn't formulated (for lack of a better word).
 
Upvote 0
And 4D should have been in 4C -- fixed below:

ABCDEFG
1AmountDate ORWEEK STARTING
2
$
Period
30/04/2018
7/05/201814/05/201821/05/201828/05/2018
31,0001/05/20181,000----
41,0006/05/20181,000<-----
51,00021/05/2018---1,000-
6
1,000
Monthly
1,000
-
-
-
1,000
7
1,000
Monthly
1,000
-
-
-
1,000
8
1,000
Fortnightly
1,000
-
1,000
-
1,000

<tbody>
</tbody>


VLOOKUP DATA:
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">VLOOKUP DATA:</body>
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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