Microsoft Office Forums Lookup multiple values and compare different scenarios to get a specific result
 Register FAQ Search Today's Posts Mark Forums Read

#1
04-12-2014, 12:17 AM
 mws Windows XP Office 2007 Novice Join Date: Apr 2014 Posts: 3
Lookup multiple values and compare different scenarios to get a specific result

In the attached sheet I want formula in column C that will give the new order quantity with following logic;

If ("Product"="Product")of column A & I, ("Closing Stock" of a particular product<"ROL" of that product) & (Current "Date" (say date in B5 if formula is being applied in C5)-Any latest previous "New Order" Date>="Lead Time" of that product)

Means if it has given new order quantity once then it should not give it again within the lead time even though the closing stock is less than the ROL. For example if it gives 150 in C3 then 150 comes on or after 21.03.2014.

Our formula should perform the 3rd logic only if it finds any new order qty in Array C otherwise first 2 logic are enough.

Thanks in anticipation.
Attached Files
 Sample Sheet.xlsx (11.1 KB, 6 views)
#2
04-13-2014, 10:55 PM
 mws Windows XP Office 2007 Novice Join Date: Apr 2014 Posts: 3

Is any body there who can help me out of the above mentioned issue.
#3
04-23-2014, 06:07 AM
 gebobs Windows 7 64bit Office 2010 64bit Expert Join Date: Mar 2014 Location: Atlanta Posts: 832

Let me take a look at it.
#4
04-23-2014, 07:36 AM
 gebobs Windows 7 64bit Office 2010 64bit Expert Join Date: Mar 2014 Location: Atlanta Posts: 832

Oy...at first blush, I think this is beyond my Excel skills. The first part, comparing the Closing Stock to ROP can be done by...

=IF([Closing Stock]<VLOOKUP([Product],[Product Data Table],2)

But it's this next part that is stumping me:
• The maximum Date
• For the specified Product
• Where the Date is less than the Date on the specified line
• And Where New Order > 0
This would be easy peasy for me in Access, but in Excel it's beyond my meager skills. Maybe someone can figure out how to do this with the Reference functions or it might require a coded function. Or maybe I'm overcomplicating it. HELP!!!
#5
04-23-2014, 12:01 PM
 Pecoflyer Windows 7 64bit Office 2010 64bit Moderator Join Date: Nov 2011 Location: Brussels Belgium Posts: 2,146

I suppose that if you did not get answers, your problem is not clear. Please post a sample sheet showing BEFORE and AFTER ( personally, I don't understand your requirements)
__________________
Problem solved ? Let others know by clicking " Thread Tools" then " Mark thread as solved".( This can be undone if need be)
#6
05-24-2014, 04:52 AM
 mws Windows XP Office 2007 Novice Join Date: Apr 2014 Posts: 3

The problem worked out finally. Sample Sheet attached.
However thanks for all the support.
Attached Files
 Solution.xlsx (20.0 KB, 2 views)

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post duskdjl Excel 4 03-28-2013 01:11 AM klawk26 Excel 1 07-31-2012 09:04 PM jrpey Excel 3 11-14-2011 02:10 PM iuliandonici Excel 1 04-13-2011 09:45 PM iuliandonici Excel 4 04-13-2011 09:27 PM

All times are GMT -7. The time now is 10:04 PM.

 -- Default Style -- Mobile Style Contact Us - Privacy Statement - Top