+ Reply to Thread
Results 1 to 6 of 6

This will test you!!

  1. #1
    Registered User
    Join Date
    09-18-2005
    Posts
    4

    This will test you!!

    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
    Attached Files Attached Files

  2. #2
    PY & Associates
    Guest

    Re: This will test you!!

    vlookup only locate the first occurrence of the target. It cannot look
    beyond for the 2nd occurrence.

    try use find method,
    use find (from here) in the 2nd loop
    stop loop when list exhausts.

    "Blaknight" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  3. #3
    Max
    Guest

    Re: This will test you!!

    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="Deposit"),
    $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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  4. #4
    Max
    Guest

    Re: This will test you!!

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


    Likewise for I22 for the other header in H22 as well ..
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  5. #5
    Registered User
    Join Date
    09-18-2005
    Posts
    4
    AWESOME!!! Thankyou so very much.. I got it working. I cant believe it actualy works..
    Last edited by Blaknight; 09-18-2005 at 09:20 AM.

  6. #6
    Max
    Guest

    Re: This will test you!!

    "Blaknight" wrote:
    > .. I cant believe it actualy works..


    ... and I can't believe why the SUMPRODUCT suggestion
    didn't work for you. Testing here was fine ..
    (btw, you had a typo error in H12, missing "t" in "Leather")
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1