LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Basing math on duplicate entries in a formula

Okay, what I want is semi complicated, but should be simple.

I have two excel sheets, one has raw data on it, let's say its an inventory
sheet with Widget A and Cog B, in column B, C & D has the QTY on hand let's
say 50,000 each for the months of March, April and May respectively.

In the 2nd sheet, my columns a
Customer, Order Date, Item ID, QTY Available, QTY Ordered, QTY remaining
(for the month).

Now, for the question: I've got half the formula written, it uses a VLOOKUP
function to reference how many widgets or cogs are available for the month of
the Order Date using the Item ID, here is the formula thus far:

=IF(ISBLANK($E8),,VLOOKUP(E8,'Forecast Data'!$A$2:$O$45,$F8,FALSE))

which populates the cell with the QTY available for the matching data in E8.
$F8 is a hidden cell with a column number based on the difference between
the month of the order date and today.

I want to add an IF statement to the VLOOKUP where VLOOKUP becomes the false
execution statement and is a result of this test:

I want to check backwards from the current row upwards in the sheet,
stopping at row 2 to see whether or not the Date and the Item ID of the
current row matches any rows above. If the statement is true, then someone
has ordered this item before and I want to use the data in the QTY Remaining
column of THAT row instead of using the VLOOKUP function... I hope that's a
clear question, hehe

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Help for Duplicate Entries NickNameGoesHere Excel Discussion (Misc queries) 1 March 16th 08 08:05 AM
Formula or Method for Deleting Duplicate Entries? Dan the Man[_2_] Excel Worksheet Functions 1 July 9th 07 03:14 PM
Formula for duplicate entries? JENNYC Excel Discussion (Misc queries) 2 February 8th 06 08:27 PM
I need a formula to find duplicate entries between 2 files. ammoman Excel Discussion (Misc queries) 1 December 2nd 05 09:11 PM
formula to calculate the average of a range basing on condition Krishna Mohan Excel Worksheet Functions 4 June 21st 05 11:26 AM


All times are GMT +1. The time now is 09:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"