+ Reply to Thread
Results 1 to 3 of 3

Excel formula help - look up reference but also check value

  1. #1
    Registered User
    Join Date
    09-29-2018
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Excel formula help - look up reference but also check value

    Hi,

    Trying to work out what formula I need for this problem, not sure if it might be something like Index and Match.
    It needs to first of all check for a matching reference, but then also a matching value

    Our documents are alphanumeric but the customers system only enters them their end as numbers.
    When we receive their remittance it only quotes the numbers from the documents and also the values.

    However, with the letters removed it means some document references are no longer unique & there is the occasional duplicated document number.

    Example below
    Columns A and B are our document numbers and their values.
    I've then added column C and D as a starting point and have used a formula to remove the letters from our original document numbers in column A.
    You'll notice that some documents in column C now appear as duplicates.

    In column F and G I've then added the customers remittance.


    I need a formula to show which lines on our statement are included in the remittance


    (remittance and statement can be hundreds of lines)

    RemitFormulaPIC.jpg
    Last edited by snowscreen; 09-29-2018 at 02:03 PM.

  2. #2
    Registered User
    Join Date
    09-29-2018
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Excel formula help - look up reference but also check value

    Customer Statement Document Unedited Document Value Customer Statement Document * edited Document Value Customers remittance - Document being paid Document Value
    A1234CD £11.00 1234 £11.00 80000012 £25.00
    A3334CD £15.00 3334 £15.00 5567 £2.00
    A5567CD £20.00 5567 £20.00 1234 £5.00
    80000012 £25.00 80000012 £25.00 40000123 £40.00
    80005555 £35.00 80005555 £35.00 1234 £11.00
    40000123 £40.00 40000123 £40.00
    B1234CD £5.00 1234 £5.00
    D1234CD £7.00 1234 £7.00
    S5567CS £2.00 5567 £2.00
    L4499CS £8.00 4499 £8.00
    F1234CD -£11.00 1234 -£11.00

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Excel formula help - look up reference but also check value

    It is unclear from your example what you expect from the outcome of the formula.

    Try something like

    =IFERROR(LOOKUP(2,1/($C$2:$C$2000=F2)/($D$2:$D$2000=G2),$A$2:$A$2000),"No Match")

    If you need more than 2000 rows, adjust the ranges as needed, making sure that they all start and end at the same rows. Don't go way beyond what is necessary, big ranges will take a long time to calculate.
    Last edited by jason.b75; 09-29-2018 at 02:55 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 20
    Last Post: 08-29-2016, 06:30 AM
  2. Replies: 3
    Last Post: 06-02-2016, 06:25 AM
  3. How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2016, 04:36 PM
  4. How to check Excel formula by VBA?
    By alee001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-15-2015, 10:17 AM
  5. Please check my formula for external cell reference
    By Mr ZN in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-31-2013, 03:33 AM
  6. check formula integrity: replace dynamic cell reference with fixed value?
    By orchidee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2013, 06:18 PM
  7. [SOLVED] Check Box reference name
    By Kris in Kenya in forum Excel General
    Replies: 3
    Last Post: 03-28-2006, 10:20 AM

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