If formula with date & VLOOKUP

dbrenuke

New Member
Joined
Oct 26, 2013
Messages
31
Hi sir,
I am using below formula for my one order format.

=IFERROR(VLOOKUP(B40, INDIRECT("'"&@CHOOSE(MATCH(E40,{"NDP","DISPLAY","FLEXI","POPULAR","CT OFFER","BIJ_1","BIJ_2","BIJ_3","BIJ_4","BIJ_5","PDR_1","PDR_2","FDW","DD","PAO","Ref & FWC"},0), INDEX($A$1:$B$1,$A$24),INDEX($A$2:$B$2,$B$24),INDEX($A$3:$B$3,$C$24),INDEX($A$4:$B$4,$D$24),INDEX($A$5:$B$5,$E$24),INDEX($A$6:$B$6,$F$24),INDEX($A$7:$B$7,$G$24),INDEX($A$8:$B$8,$H$24),INDEX($A$9:$B$9,$I$24),INDEX($A$10:$B$10,$J$24),INDEX($A$11:$B$11,$K$24),INDEX($A$12:$B$12,$L$24),INDEX($A$13:$B$13,$M$24),INDEX($A$14:$B$14,$N$24),INDEX($A$15:$B$15,$O$24),INDEX($A$16:$B$16,$P$24),INDEX($A$17:$B$17,$Q$24))&"'!A1:K1000"),4,0),0)

Above formula is useful for one price list.
Now those days, I am using two different price list i.e 1st to 15th & 2nd 16th to 30th, when I am trying to use if formula (If((B2 >="16-09-2024",vlookup( Above formula)
But it's not work, I need result in my single order format, if I put a date between 1-15, result should be from 1st price list, if put date between 16-30 result should be from 2nd price list.
Please help me in regards.


1725734621736.png
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
difficult to see from your image
in simply
if I put a date between 1-15, result should be from 1st price list, if put date between 16-30 result should be from 2nd price list.
how about something like

-IF ( day( whatever that date cell is in ) <=15, look up for the 1st price list , lookup for the 2nd pricelist)

what version of excel are you using , solutions will vary a lot depending on version

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0

Forum statistics

Threads
1,224,809
Messages
6,181,075
Members
453,020
Latest member
mattg2448

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