+ Reply to Thread
Results 1 to 6 of 6

Connecting HR info - diff tabs, IF criteria, etc.

  1. #1
    Registered User
    Join Date
    10-05-2020
    Location
    Sacramento, CA
    MS-Off Ver
    365
    Posts
    3

    Connecting HR info - diff tabs, IF criteria, etc.

    Hi, all, probably not super complex but not sure where to start.

    Work is being done on tab named Sheet1, Reference worksheet tabs are named 500 to 584

    Each reference worksheet has a text string in A2 that corresponds to that tab number. Example: Tab 500, A2 = IT Branch, Tab 502, A2=Health Services Section , etc.

    Sheet1 has a list of all the employees by last name in column B, and in column A there is a position # for each person which includes that corresponding tab number (example: 332-500-4723-002).

    All I want to do is add another column to Sheet1 which has the corresponding String name for their sections (so if it sees 500 as part of the number in column A, the function finds the right tab by its number, then enters the same value as A2 in a new specified column on sheet 1)


    Basically I'm trying to get the section name for each employee on worksheet1 without having to do some kind of "find and replace" manually 84 times (but in a new column).
    Attached Files Attached Files
    Last edited by ClassyPancakes; 10-05-2020 at 07:19 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Connecting HR info - diff tabs, IF criteria, etc.

    Hi - would it be possible to attach your file? And show your desired results

  3. #3
    Registered User
    Join Date
    10-05-2020
    Location
    Sacramento, CA
    MS-Off Ver
    365
    Posts
    3

    Re: Connecting HR info - diff tabs, IF criteria, etc.

    Sorry! Attached and added desired result column.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Connecting HR info - diff tabs, IF criteria, etc.

    If your position numbers always start with that format (3 numbers then hyphen then a three-digit code for the sheet), then put this in D2 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The first A2 refers to the A2 on Sheet 1, the second to the relevant tab (just in case there's any confusion).

    Edit: If the position number format might change, there'll need to be a 'Find' function embedded in the 'Mid' function - not too hard, but it would make the formula look a lot more complicated and there's no point if it's not needed.

    ps Welcome to the forum.
    Last edited by Aardigspook; 10-05-2020 at 02:58 PM.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  5. #5
    Registered User
    Join Date
    10-05-2020
    Location
    Sacramento, CA
    MS-Off Ver
    365
    Posts
    3

    Re: Connecting HR info - diff tabs, IF criteria, etc.

    Quote Originally Posted by Aardigspook View Post
    If your position numbers always start with that format (3 numbers then hyphen then a three-digit code for the sheet), then put this in D2 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The first A2 refers to the A2 on Sheet 1, the second to the relevant tab (just in case there's any confusion).

    Edit: If the position number format might change, there'll need to be a 'Find' function embedded in the 'Mid' function - not too hard, but it would make the formula look a lot more complicated and there's no point if it's not needed.

    ps Welcome to the forum.

    It worked! Thank you so so much! And yes luckily the position # doesn't change format.

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Connecting HR info - diff tabs, IF criteria, etc.

    You're welcome, glad I could help. Thanks for the rep and for marking the thread as Solved.

+ 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. [SOLVED] Formula to pull info from different tabs based on criteria
    By realestateman in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-28-2017, 01:13 PM
  2. Attempting Macro to hide current tabs and create new ones with same info (Diff tab name)
    By theta25nupe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2014, 11:44 AM
  3. Replies: 4
    Last Post: 10-02-2013, 03:00 PM
  4. Can a macro change data on tabs when info in F7 of Job Info worksheet changes? If so How?
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-05-2012, 02:59 AM
  5. connecting tabs to a master???
    By jgomez in forum Excel General
    Replies: 0
    Last Post: 01-13-2011, 02:57 PM
  6. [SOLVED] VBA to pull from 2 diff tabs within the same spreadsheet
    By mike in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-07-2005, 02:55 PM
  7. [SOLVED] VBA to Pull info from 2 diff tabs from the same spreadsheet
    By mike in forum Excel General
    Replies: 0
    Last Post: 12-07-2005, 02:45 PM

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