+ Reply to Thread
Results 1 to 6 of 6

Look up required

  1. #1
    Registered User
    Join Date
    08-30-2007
    Location
    Dublin, Ireland
    Posts
    18

    Look up required

    First off, its my first post so hi and thanks in advance

    I have an excel spreadsheet to consolidate accounts. So i have Account types in column a 1 to a 50 (the likes of fixed assets, current assets and the various sub headings) in the current assets and current liabilities are all the inter company accounts so there is a list say from a20 to a30 owed by co x owed by co y etc and from a40 to a50 owed to co x owed to co y etc.

    the various co's are then across the top col b is co 1, col c is co 2 etc.

    What i want is a formula that matches up all the inter co balances so i can reconcile them.

    So i want it to say for Co 1 to pull all the amounts it is owed by other companies (which is easy just col b20 to b30) but also to goto col c-x40-50 and to pull the balance that the other co reports as owing to co 1.

    can anyone help

    see rough attached example of what info i have sheet 1 and what i want to achieve, sheet 2
    Attached Files Attached Files

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    I figured it out by using a VHLOOKUP() function. This function is a so called "User Defined Function" which is added to the attached workbook.
    Press <Alt>+<F11> and go to the VBA module of the workbook.

    On my site you'll find an explanation and a sample of this function.
    Attached Files Attached Files
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    08-30-2007
    Location
    Dublin, Ireland
    Posts
    18
    thanks a million

    can i just create a formula like that in the spreadsheet i need it in or do i need to do the vb stuff?

  4. #4
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Hi,

    Once you copy the code in the VBA module of a worksheet you can use the VHLOOKUP() function in that particular worksheet.

    Erik

  5. #5
    Registered User
    Join Date
    08-30-2007
    Location
    Dublin, Ireland
    Posts
    18
    i cannot seem to replicate that function in another work book

    could you give me the steps to adding the code?

    thank you

  6. #6
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    I added a short description to the VHLOOKUP item on my site.

+ 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