+ Reply to Thread
Results 1 to 5 of 5

Relative References within a Formula?

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Relative References within a Formula?

    Hi all! This is my first post. However I have been a lurker of your site for some time now and I have never been disappointed. That is why I present to you my first inquiry:

    The simplified version-- I wish to create a formula in Worksheet B that populates both from data in cells in Worksheet A and if I were to say, paste.
    The problem is that I want the ability be able to paste in data to the receiving cell and not adjust the formula. For example

    WS A:
    X
    P
    L
    X
    WS B:
    =WS A!A1 (X)
    =WS A!A2 (P)
    Y
    Y
    K
    =WS A!A3 (L)
    =WS A!A4 (X)
    G
    T
    So the formula would have to be smart enough to read the entered cells in worksheet A and if data is entered in worksheet B, not bugger up the rest of the worksheet. I feel like this is very possible and probably easy but I have not been successful with searching for a solution. Any assistance is appreciated. I would like to avoid creating a macro and stick to a simple formula.

    I created a forumla that does not work. It reads the last cell only and makes all of the data mimic that =INDEX(Sheet1!A1:A100,MATCH(REPT("z",255),Sheet1!A1:A100))

    Thank you in advance!

    -Ryan

  2. #2
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: Relative References within a Formula?

    hey welcome to this forum...!

    if possible please upload the excel sheet containing the data....will help us to solve your problem in much better way...!

    Thanks...!
    Regards,
    abdul

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Relative References within a Formula?

    Hi and welcome to the forum

    The problem is that I want the ability be able to paste in data to the receiving cell and not adjust the formula.
    does this mean that in the same cell, you want to have a formula AND want the ability to replace that formula with data?
    Because if thats what you want, there is no regular formula that will give you that capability. A cell can contain either data/values/text OR a formula. it cannot contain both
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Relative References within a Formula?

    if you paste in using insert copied cells/move cells down the formulas would move correctly
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    05-07-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Relative References within a Formula?

    I think I need to go back to the drawing board and look at the whole process for this data entry again. Thank you for your help though. If I stick with the same spreadsheet I will continue to use insert copied cells/move cells down. I appreciate all of the advice.

+ 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