IF + VLOOKUP return result within date range

Status
Not open for further replies.

StaceyVECL

New Member
Joined
Apr 13, 2022
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hi All,

ABCDEFGHIJKLMNOP
DateSkuCodeQtyPoOrder#NameShip DateTrackingCourierInv#CostShippingVatTotal Inc. VatStatus

=IF(OR($B4="",$D4=""),"",IF(B4="","",(VLOOKUP(@$B$4:$B$500,Formulas!$A$1:$F$26,4,FALSE)))*D4)

I am using the above formula in column L and M to pull in a cost price for an item so that we know what to invoice. However, there is a new step. Cost price will change dependent on the date of the order for sales. Is there a way to use the formula as is but add in a step to use the date in Column A depending on the date on the formulas tab in F2 and F3 as per the below?

1ABCDEFG
21/1/241/1/2426/11/2426/11/24
325/11/2425/11/242/12/242/12/24
4SKUDescriptionCodeCostShippingCost price saleShipping Sale

Thanks
Stacey
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Could you attach a sample of the data that are in sheet "Formulas"? An image with few lines would be sufficient
 
Upvote 0
Could you attach a sample of the data that are in sheet "Formulas"? An image with few lines would be sufficient
Hi Anthony,

I currently have it like this:

Wilko CodeAlways CostsShippingRRPBF SOA Dec SOA Jan Sale
26-Nov26-Nov04-Dec04-Dec26-Dec26-Dec
SKUProduct Name 03-Dec03-Dec24-Dec24-Dec14-Jan14-Jan
TWC400S-MLWKToucan Wireless Outdoor Camera S40687874£58.30£4.85£99.99£38.30£4.85£43.30£4.85£52.00£4.85
TVD300V-ML-WKToucan Wireless Video Doorbell V3 with included Chime0687875£58.30£4.85£99.99£43.30£4.85£48.30£4.85£52.00£4.85
 
Upvote 0
Duplicate to: IF and VLOOKUP with Dates values

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,225,499
Messages
6,185,336
Members
453,287
Latest member
Emeister

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