+ Reply to Thread
Results 1 to 10 of 10

Pulling in information from other WorkSheets

  1. #1
    Registered User
    Join Date
    10-18-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Pulling in information from other WorkSheets

    I am having a hard time coming up with a formula that would pull information as long as a name and a date are the same. So, I need the employees name and the date referenced and then enter specific data that is in a different worksheet. I hope the way that I am explaining it makes sence. I am thinking some kind of IF formula but I cannot think of how to make it dependent on two different cells data.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Pulling in information from other WorkSheets

    Let's say that you want to return the value in sheet 2 cell D10 to cell A2 on sheet 1 if Sheet 1 cell B2 contains the text Yes and Sheet 1 Cell C2 contains the text No. In Cell A2 put
    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    10-18-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Pulling in information from other WorkSheets

    If I want to return the value in sheet 2 cell D10 to cell A2 on sheet 1 if Sheet 1 cell A2 contains the text yes and Sheet 2 cell D2 contains the text yes and Sheet 1 Cell A3 contains the text no and Sheet 2 cell D3 contains the cell the text no how would I reference that?

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Pulling in information from other WorkSheets

    Good afternoon SlowlybutSurely

    As this might be a difficult concept to explain, can you upload an example sheet showing precisely what your issue is and what your expected outcomes are?

    DominicB



    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitise the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Please familiarise yourself with the rules before posting. You can find them here.

  5. #5
    Registered User
    Join Date
    10-18-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Pulling in information from other WorkSheets

    So what I am trying to do is pull the percentage from Sheet 2 Column A into Sheet 1 Column K into Sheet 1 as long as the name "T2" and the Date are the same.
    Attached Files Attached Files

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Pulling in information from other WorkSheets

    Hi SlowlybutSurely

    OK, that shouldn't be too bad.

    One question - the results sheet (After1) shows only results that match, there are no blank rows where matches don't occur. Is this correct - no blank rows allowed?
    If so, this will require a VBA solution - are you OK with that?

    One more thing - I might not get to this today, but I will come back to it, so if no-one else jumps in, keep checking back...

    HTH

    DominicB

  7. #7
    Registered User
    Join Date
    10-18-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Pulling in information from other WorkSheets

    There could be a blank row if there was an error, with this section there just weren't any. Blank rows are allowed

    Thank you so much!

  8. #8
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Pulling in information from other WorkSheets

    This would require an array formula, which I have very little expertise in, if you have to use a formula. But I can offer a solution using VBA. This code would be copied to the standard code module1. The workbook would need to be saved as a macro enabled workbook.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-18-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Pulling in information from other WorkSheets

    Ok forgive me, I've never used VBA before. the Sub t() should I be entering information there to make it work for me?

  10. #10
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Pulling in information from other WorkSheets

    To use the macro in post #8
    1. Make sure your workbook is saved as a macro enabled workbook with file extension .xlsm
    2. Press Alt + F11 to open the code editor
    3. If the large pane is dark, then click 'Insert' on the editor tool bar, then click 'Module'
    4. When the large pane of the editor is bright, copy the code above and paste it into the large pane and save the file.
    5. Close the editor window.

    To run the procedure from the Excel window
    1. Press Alt + F8
    2. When the dialog box appears, left click the macro name.
    3. Click 'Run'

    If the macro does what you want it to do, you can assign it to a button and run the macro by clicking the button.
    1. Cick 'Developer' on the ribbon.
    2. Find and click 'Insert' on the bottom line of the tool bar.
    3. You should see two sets of controls.
    4. Click the button in the Form Controls tool box.
    5. Using the mouse pointer, put the cross hairs (+) symbol where you want your button to reside and Left click.
    6. The button should appear along with a dialog box to assign the macro.
    7. Double click the macro name.

    You should now be able to run the macro by simply clicking the button.

+ 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: 0
    Last Post: 10-19-2015, 11:27 AM
  2. Pulling information from one tab to another
    By narffran in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2015, 10:10 AM
  3. [SOLVED] Need some help pulling information
    By andyaf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2015, 03:57 PM
  4. Replies: 2
    Last Post: 09-18-2014, 10:11 AM
  5. Pulling information from 1 worksheet to another
    By jammerz24 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-14-2013, 09:54 PM
  6. [SOLVED] Having problems pulling information between worksheets automatically
    By tinmouse in forum Excel General
    Replies: 3
    Last Post: 06-03-2012, 01:47 PM
  7. Pulling Information from Other Worksheets
    By Outlaw 13 in forum Excel General
    Replies: 2
    Last Post: 09-03-2009, 11:44 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