+ Reply to Thread
Results 1 to 4 of 4

Searching and Matching

  1. #1
    Registered User
    Join Date
    06-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Searching and Matching

    Hi all,

    I can't figure out how to solve this problem. I'd appreciate it if anyone could help.

    As in the attached file, the issue is: for each firm with negative transactions, if all previous positive transactions have the same level, I want the level of these negative transactions to be the same as the previous one.

    For example, for firm ABC, the first three transactions are all positive and with level 1. The next transactions (B5 & B6) are negative, so I want the level for these transactions are the same as before (ie, C5 = 1 and C6 = 1).

    But for firm DEF, when not all positive transactions have the same level (1, 1, 2), I want the level of next negative transaction (C10) to be "FALSE".

    Thanks a lot!
    Attached Files Attached Files
    Last edited by Salient; 06-18-2009 at 01:30 PM.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,003

    Re: Searching and Matching

    Try this,

    C5

    Please Login or Register  to view this content.
    Commit with Ctrl+Shift+Enter.

    I think its difficult to understand. But, I don't know how to solve it easier

    You can also see attached file.

    Hope this helps,

    windknife
    Attached Files Attached Files

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Searching and Matching

    How about

    C5: =IF(SUMPRODUCT(--($A$2:$A4=$A5),--($C$2:$C4<>$C4)),FALSE,$C4)
    applied to other cells

    Based on the assumption that data is sorted by Firm and than negative transactions appear at the end of the listings (ie one does not need to look at transactions below current row when determining consistency of level for given firm)

    If C entries are true blanks all formulae can be entered simultaneously by:

    1 - highlight Column C
    2 - hit F5
    3 - select Special -> in resulting dialog select Blanks
    4 - enter above Formula and press CTRL + ENTER to confirm.
    Last edited by DonkeyOte; 06-19-2009 at 02:21 AM.

  4. #4
    Registered User
    Join Date
    06-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Searching and Matching

    Thanks a million guys! You're so helpful.

+ 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