Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to use/reference value from previous worksheet in Excel?

How to reference a specific cell value from previous worksheet when creating a copy in Excel? For example, when creating a copy of Sheet2, you may want to automatically reference cell A1 of Sheet2 into the new copied worksheet (says Sheet3). How to achieve it? This article will help you.

Use/reference value from previous worksheet with User-defined function

Use/reference value from previous worksheet with Kutools for Excel

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial


Use/reference value from previous worksheet with User-defined function


To be honest, no method can automatically reference certain cell value when creating a copy of a worksheet. Actually, you can create a new sheet and then reference the cell value from previous worksheet with the following user-defined function.

1. After creating a new blank worksheet (says Sheet3), please press Alt + F11 keys at the same time to open the Microsoft Visual Basic for Applications window.

2. In the Microsoft Visual Basic for Applications window, click Insert > Module. Then copy and paste the following VBA code into the Code window.

VBA: Use/reference value from previous worksheet in Excel

Function PrevSheet(RCell As Range)
    Dim xIndex As Long
    Application.Volatile
    xIndex = RCell.Worksheet.Index
    If xIndex > 1 Then _
        PrevSheet = Worksheets(xIndex - 1).Range(RCell.Address)
End Function

3. Press the Alt + Q keys simultaneously to close the Microsoft Visual Basic for Applications window.

4. Select a blank cell of Sheet3 (says A1), enter formula =PrevSheet(A1) into the Formula Bar and then press the Enter key.

Now you will get the A1 cell value of previous worksheet (Sheet2) in current worksheet.

Note: The code will auto identify the worksheet which belongs to the previous one of current worksheet.


Use/reference value from previous worksheet with Kutools for Excel

With the Dynamically Refer to Worksheets utility of Kutools for Excel, you can easily use or reference value from previous worksheet in Excel.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.

1. If you want to reference value of cell A1 from previous worksheet to current worksheet, please select cell A1 in current worksheet and then click Kutools > More > Dynamically Refer to Worksheets. See screenshot:

2. In the Fill Worksheets References dialog box, only check the previous worksheet name in the Worksheet list box, and then click the Fill Range button.

Then you can see the value of cell A1 in previous worksheet is referenced in current worksheet.

Note: With this utility, you can reference the same cell value from different worksheets into current worksheet at once.


Use/reference value from previous worksheet with Kutools for Excel

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Download the free trial now!


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Alex · 4 months ago
    What about use value from Next Sheet?
    • To post as a guest, your comment is unpublished.
      crystal · 3 months ago
      Hi Alex,
      To get the value from next Sheet, please replace the minus sign with plus sign in the sixh line of the code:
      PrevSheet = Worksheets(xIndex + 1).Range(RCell.Address)
  • To post as a guest, your comment is unpublished.
    Ryan · 1 years ago
    I've been looking for something to do this forever, thank you so much you have no idea. I have a simple spreadsheet for data entry weekly and a new tab for each week. the days, date, week #, etc goes +1 and then it grabs from previous sheet and moves to new one, this created a fast solution to data transfering to different sheets--- Again thank you
  • To post as a guest, your comment is unpublished.
    Steve Bannister · 1 years ago
    Excellent work and explanation. Saved me so much time, thank you VERY much.
  • To post as a guest, your comment is unpublished.
    NC · 2 years ago
    Hello
    I have a question for the experts.
    I am able to make a reference to previous sheet.
    But i would like to keep repeating that reference throughout the workbook on the same cell on the next sheets. (ie D13)
    Example:
    Sheet 1 Cell D13 is repeated in the next sheets with 1 incremental value each.
    However if i delete sheet 7 or any other sheet, i need excel to continue counting the same way.

    for example

    sheet 1 I start with 100
    sheet 20, I end up with 119
    if i delete couple sheets , i want to make sure that references change automatically without manual intervention.
    Meaning that reference on D13 is changed automatically after I delete sheets.
    Thank you for your help.