+ Reply to Thread
Results 1 to 16 of 16

Excel formula to Copy values from worksheet to another

  1. #1
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Excel formula to Copy values from worksheet to another

    I have a requirement to copy cell values from "Sheet1", cells A1 and A2 to "Sheet2" cells B1 and B2 respectively. I would like to set a hyperlink in Sheet1 and on clicking the link, Sheet2 should be open and values of A1 and A2 from Sheet1 should be copied to B1 and B2 in Sheet2.

    Is there a way to do this using Excel formulae without using macros?
    Last edited by zykkzxxy789077; 07-27-2016 at 10:53 AM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel formula to Copy values from workbook to another

    When you say sheet, do you mean workbook or workSHEET?

    Also if you use formulas the link will be LIVE, as opposed to a macro where it literally copies and pastes the values.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel formula to Copy values from workbook to another

    You don't need a hyperlink to do this. A hyperlink takes you to a location, it doesn't do any kind of calculation.

    Enter this formula in Sheet2 B2 and copy down as needed:

    =Sheet1!A1
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Excel formula to Copy values from workbook to another

    I meant worksheet, sorry. I would want value of a cell copied from a worksheet to a cell on another worksheet

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel formula to Copy values from worksheet to another

    Yeah so the formula Tony posted above will be VERY simple and should work for you.
    If it was a different workbook the formula would be different but it would do the same thing.


    A hyperlink is like a shortcut in your internet browser that takes you to EXCELFORUM.com when you click on the link. So people use hyperlinks in Excel to click the button and take them to somewhere else in the workbook.

  6. #6
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Excel formula to Copy values from worksheet to another

    Thank you for your replies, I get that but maybe I should have put my question in much detail.

    Here is a sample of what I would need to do,

    Sheet1 has the below:

    http://i35.servimg.com/u/f35/15/16/19/62/sheet110.jpg


    Sheet2 has the below:

    http://i35.servimg.com/u/f35/15/16/19/62/sheet210.jpg

    When I click on the individual links on sheet1, sheet2 should be open and the values of Airport and Code should be automatically populated as per the Airport and Code in the sheet1 in the same row as the link is clicked from.

    Sheet 2 then already has a formula to display the list of flights according to the code and airport.

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel formula to Copy values from worksheet to another

    Okay lets start over.

    Attach a sample workbook (NOT images). 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 desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  8. #8
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Excel formula to Copy values from worksheet to another

    Ok, I have added the mockup excel
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel formula to Copy values from worksheet to another

    Where do the list of flights come from that was used to populate the Flights List worksheet?

  10. #10
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Excel formula to Copy values from worksheet to another

    In the mockup, I had hardcoded it. But ideally it should come from "Index" sheet's Airport, Code in the same row as the link is clicked from

  11. #11
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel formula to Copy values from worksheet to another

    How does the list change?
    There is no raw data that I see...

  12. #12
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Excel formula to Copy values from worksheet to another

    So the list that you see in "Flight List" sheet is derived from the Airport and Code fields from the same sheet. I already have a logic for that, I have hardcoded the data in excel for now.

    I am interested in the part when I click the "Link" in "Index" sheet - It should copy the corresponding row's Airport and code into "Flight List" sheet's Airport and Code.

  13. #13
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel formula to Copy values from worksheet to another

    Why not just create 5 tabs and have the link go to whichever is needed?

  14. #14
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Excel formula to Copy values from worksheet to another

    I was considering the same, but the input is dynamic and gotten from SQL query results, there are scenario where I could get upto 100s of rows. And hence this approach.

  15. #15
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel formula to Copy values from worksheet to another

    Then use ONE sheet and a slicer to drive ONE pivot table. Then instead of LINKS use the slicer to drive the pivot.

    I do that most frequently, since pivoting is MUCH easier than managing the slick logic with excel or vba to populate the lists.

  16. #16
    Registered User
    Join Date
    07-27-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    12

    Re: Excel formula to Copy values from worksheet to another

    In my actual worksheet that I work on, I do have a slicer in the "Flight List" sheet that filters the result as per the Airport and Code.

    But I would like to have the link from Index sheet, when clicked it should automatically populate the corresponding Airport and Code value into the "Flight List" sheets slicer fields. The slicer will automatically filter then.

+ 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: 1
    Last Post: 09-21-2015, 04:01 PM
  2. Copy hyperlink values to new cell
    By Mike_Gormley in forum Excel General
    Replies: 7
    Last Post: 07-18-2015, 02:02 PM
  3. How to follow an hyperlink formula of another workbook ?
    By salsalex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2014, 09:16 PM
  4. [SOLVED] Macro to copy cell values from another excel workbook
    By laxminarayana in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2014, 01:52 PM
  5. [SOLVED] Copy Values From Each Workbook in Folder to a Single Sheet in New Workbook +Workbook names
    By Arsham24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:42 PM
  6. Hyperlink vlookup and some copy paste values. Please help.
    By m_oioisju in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2012, 12:55 PM
  7. Copy hyperlink from one workbook based off user defined selection on another.
    By Qppg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-16-2007, 03:04 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