+ Reply to Thread
Results 1 to 13 of 13

updating of cells automaticly based on first cell

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Dhaka
    MS-Off Ver
    Excel 2013
    Posts
    77

    Unhappy updating of cells automaticly based on first cell

    hello!

    i have a simple problem... thats..

    in sheet1 I have data from cell A1 to A1000 and i can link that data to Sheet2 cell A1 to A1000. I do that now by entering =Sheet1!A1 and drag that untill cell A1000. but i wanted to change only the first cell of Sheet2 and hoped rest of the cell update based on the first cell A1... so, if i change the first cell of the Sheet2 to =Sheet1!A9 rest of the cell changes too like Sheet1!A10, Sheet1!A11, Sheet1!A12, Sheet1!A13...

    I hope i am able to clearly present my question with my limited language skill :-)

    thank you for your kind help
    Last edited by iamhsn; 11-21-2017 at 02:11 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: updating of cells automaticly based on first cell

    Change A1, then drag copy across and down.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Dhaka
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: updating of cells automaticly based on first cell

    as i have huge data to handle thats why i am looking for automatic filling based on the first cell reference.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: updating of cells automaticly based on first cell

    If the dataset is huge, a formula solution using OFFSET might not be the best idea - maybe you need a VBA solution.

  5. #5
    Registered User
    Join Date
    05-07-2012
    Location
    Dhaka
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: updating of cells automaticly based on first cell

    not that big to use VBA...
    a formula is ideal...
    like if I change the first cell to A1 then then next cells become A2..A3.. or if i change the first cell to A5 then the next cells changes automatically to A6, A7, A8...

  6. #6
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: updating of cells automaticly based on first cell

    Ali, he is trying to get a formula in Sheet2 A2 to A1001 based on the reference i.e. Sheet1!A1 or Sheet1!A2 etc. He need a formula in A2 based on the formula in A1. If he put the reference/formula like Sheet1!A9 in Sheet2!A1, the next cell (A2) should generate Sheet1!A10. We need a formula to sum the last part of the formula. Do you have anything in your mind ?

  7. #7
    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,929

    Re: updating of cells automaticly based on first cell

    Perhaps look at using INDIRECT()?
    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

  8. #8
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: updating of cells automaticly based on first cell

    I tried to make it, couldn't complete.
    Assume the Sheet2!A1 has the formula =Sheet1A4

    I used the below formula.
    =INDIRECT("Sheet1!A"&"4"+COLUMN(A:A))

    But we need to get a formula for "4"- how to extract 4 from Sheet1!A4?
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: updating of cells automaticly based on first cell

    Quote Originally Posted by Shareez Saleem View Post
    Ali, he is trying to get a formula in Sheet2 A2 to A1001 based on the reference i.e. Sheet1!A1 or Sheet1!A2 etc.
    I understand perfectly what he wants. However, in post #3, he mentions "huge data", which is why I suggested that a VBA approach might be preferable to a formulaic one. Formulae would need to include either INDIRECT or OFFSET, both of which can slow things down on large datasets. If he wants VBA, I can move the thread for him.

  10. #10
    Registered User
    Join Date
    05-07-2012
    Location
    Dhaka
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: updating of cells automaticly based on first cell

    Quote Originally Posted by Shareez Saleem View Post
    Ali, he is trying to get a formula in Sheet2 A2 to A1001 based on the reference i.e. Sheet1!A1 or Sheet1!A2 etc. He need a formula in A2 based on the formula in A1. If he put the reference/formula like Sheet1!A9 in Sheet2!A1, the next cell (A2) should generate Sheet1!A10. We need a formula to sum the last part of the formula. Do you have anything in your mind ?
    yes! that's correct. i am exactly looking for that :-)

  11. #11
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: updating of cells automaticly based on first cell

    =INDIRECT("Sheet1!A"&MID(FORMULATEXT($A$1),SEARCH("!A",FORMULATEXT($A$1))+2,99)+ROWS($A$1:A1))
    Enter this formula in Sheet2 Cell A2 and drag down.

  12. #12
    Registered User
    Join Date
    05-07-2012
    Location
    Dhaka
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: updating of cells automaticly based on first cell

    that works! thank you very much for your time and feedback. :-)
    may peace be upon you :-)

  13. #13
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: updating of cells automaticly based on first cell

    Please close this thread.

+ 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. Updating rows automaticly from another sheet
    By Juliebtw in forum Excel General
    Replies: 12
    Last Post: 12-15-2015, 01:18 PM
  2. Updating value ** the cell based on the other cells value changes
    By Alexb77 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 05:59 PM
  3. [SOLVED] Updating a cell based on another cells value
    By joeyga in forum Excel General
    Replies: 5
    Last Post: 05-05-2013, 06:08 PM
  4. Replies: 3
    Last Post: 12-13-2012, 03:50 PM
  5. updating date based on another cells value
    By tattooguy21 in forum Excel General
    Replies: 13
    Last Post: 04-18-2010, 04:55 PM
  6. Updating different cells based on one's value
    By ashik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2007, 10:34 PM
  7. [SOLVED] Updating a cell based on contents of two other cells
    By jonco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-04-2006, 07:50 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