+ Reply to Thread
Results 1 to 4 of 4

fetching data from a table

  1. #1
    Registered User
    Join Date
    10-04-2007
    Posts
    15

    fetching data from a table

    Hi

    I need a formula on sheet2, to look at a cell "b3", then go to sheet1, find the column with the value from "b3", then go down the rest of the column and add all the cells containing a certain value like "H" or "LD"
    Trying to sort a holiday planner for staff, but I need it to be able to recalculate when inserting new employees.
    any help would be appreciated, so that why it needs to look at a certain cell. I've worked out how to add up everything from a certain column, but cannot get it to alter automatically when moving the names down.

    Attached the form and the work needs to be on sheet 2, and filling in column "holiday taken", there are a few tries for you to have laugh at.

    Thanks
    Attached Files Attached Files
    Last edited by MickeyP; 06-16-2009 at 02:14 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with a problem for fetching data

    Try:

    =COUNTIF(INDEX(Sheet1!$3:$3,MATCH(B3,Sheet1!$3:$3,0)):INDEX(Sheet1!$372:$372,MATCH(B3,Sheet1!$3:$3,0)),"H")

    copied down.

    or shorter:

    =COUNTIF(INDEX(Sheet1!$3:$372,,MATCH(B3,Sheet1!$3:$3,0)),"H")
    Last edited by NBVC; 06-16-2009 at 02:28 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-04-2007
    Posts
    15

    Re: fetching data from a table

    Excellent that did the trick.

    thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: fetching data from a table

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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