+ Reply to Thread
Results 1 to 3 of 3

Formula to add data from table in seperate worksheet, if cell contains, then add....

Hybrid View

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Boscobel, WI
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Formula to add data from table in seperate worksheet, if cell contains, then add....

    I have a table set-up in a worksheet (see sample of table below)

    Column A:
    Teacher
    Anderson
    Anthony
    Atkinson
    Bausman
    Byrne

    Column B:
    Prep
    A3/B3
    A2/B1
    A3/B4
    A4/B1
    A1/B3



    In a separate worksheet, is there a formula for the following:

    For all cells containing the text "Anderson" add the text "A3/B3" to the next cell (cell to right of cell containing "Anderson")

    ...And so on for the rest of the teachers in the table?
    Last edited by Shayla; 11-14-2012 at 09:58 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Formula to add data from table in seperate worksheet, if cell contains, then add....

    Assuming your names on the second sheet are in column A starting with A2, put this in B2 of that sheet:

    =VLOOKUP(A2,Sheet1!A:B,2,0)

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Boscobel, WI
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula to add data from table in seperate worksheet, if cell contains, then add....

    Thank You Pete,
    That worked perfect! That will save me hours and hours of time at work!!

    Thank you so much,
    Shayla

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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