View Single Post
  #3   Report Post  
Max
 
Posts: n/a
Default

One way ..

H12:H24 (except H18) contains the lookup items:

Medium Leather
Heavy Leather
Thick Leather
Rugged Leather
etc

Put in I12:

=SUMPRODUCT(($A$11:$A$100=H12)*($E$11:$E$100="Depo sit"),
$C$11:$C$100)-SUMPRODUCT(($A$11:$A$100=H12)
*($E$11:$E$100="Withdrawn"),$C$11:$C$100)

Copy I12 down to I24

(Clean up by deleting the formula in I18
for the header in H18 where it doesn't apply)

Adapt the ranges to suit, but note that we can't use
entire column references in SUMPRODUCT
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Blaknight" wrote in
message ...

Hello All,

My first post here as i am very stuck with a very complex formula.

-=See attachment=-

Please if you can help grab the attachment so you know what i am on
about.

This is my problem. I have 6 columns of data labeled
- Item, Date, Qty, Quality, Action, Charater.

What i want is the formula to search A11 to F41 (F41 will be greater
with more data entered) for a word in column A say *Medium Leather*
then look for the value in column C of that word found in column A and
continue.

I have achieved this but when it has found the 1st word it doesn't
continue on to find another word of the same. This is what i have
used.

=VLOOKUP("Medium Leather",A11:F41,3,)

Then on top of that i want it to look in column E for one of two words.
Deposit and Withdrawn. I want the formula to add the data found in
column C when the word Deposit has been found in column E, and
subtracted if the word Withdrawn has been found.

This infomation needs to be placed in the Qty column in the *Totals
Table* next to the corresponding Item.

So. basically i want

- Search Entire *Data Table* A - F, 11 - ** for Item
- Get value in C
- Work out if C value is - or + from E (Deposit = +, Withdrawn = -)
- Get current total value sum in I

I think you could only iunderstand if you download the attachment.

Thanks in advanced.

Blaknight


+-------------------------------------------------------------------+
|Filename: help_sKsLeather Blotter.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3836 |
+-------------------------------------------------------------------+

--
Blaknight
------------------------------------------------------------------------
Blaknight's Profile:

http://www.excelforum.com/member.php...o&userid=27352
View this thread: http://www.excelforum.com/showthread...hreadid=468591