+ Reply to Thread
Results 1 to 17 of 17

How to move data from one cell to a variety of other cells. Indirect addressing?

  1. #1
    Registered User
    Join Date
    04-23-2024
    Location
    RI
    MS-Off Ver
    365
    Posts
    7

    How to move data from one cell to a variety of other cells. Indirect addressing?

    I'm probably using the wrong terminology, which may be why I'm not having much luck searching the web.

    This is what I want to do ... (abbreviated)

    I have data in cell C2.

    I want to move (copy?) the C2 data value to any one of a number of different cells (Dx), depending on the value in cell A1.

    example: When the value in A1 is 4, data from C2 is moved to D4. When A1 is 12, data from C2 is moved to D12.

    I also want this move to be a one-shot deal, only making the move when I trigger it (somehow).
    If the value in C2 changes, I do not want it to change any of the destination cells until I give it a specific destination.

    Essentially, I want to store the value in C2 to another cell.

    I'm hoping there is a solution that doesn't require VBA. My expertise with Excel is ... limited.

    Thx!

  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
    81,223

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Welcome to the forum.

    Move or copy? There's a crucial difference, and we need to know which.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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
    04-23-2024
    Location
    RI
    MS-Off Ver
    365
    Posts
    7

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Attachment attached.

    In this case, I want to "store" the air velocity C2 in one of the cells from C8 thru C17, based on the value in C4.

    Unless there is a better way, when C4 is 0 then nothing happens.

    Thanks in advance for any help!
    Attached Files Attached Files
    Last edited by Rodger F; 04-23-2024 at 10:17 AM. Reason: Where is the attachment?

  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
    81,223

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    No attachment attached (yet).

  5. #5
    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
    81,223

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    In C8 copied down:

    =IF($B$4&" "&$C$4=B8,$C$2,"")
    Attached Files Attached Files

  6. #6
    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
    81,223

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    How are we doing? Does this work for you, or are there added complexities (I am thinking that there will be)?

  7. #7
    Registered User
    Join Date
    04-23-2024
    Location
    RI
    MS-Off Ver
    365
    Posts
    7

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Thank you for the help.

    However, the air velocity disappears from the destination cell when the case number is changed ... and it reappears in the new case number.

    I'm looking for a way to "store" the value. So after I have performed ten case calculations, I would have all ten (yellow) case cells populated.

  8. #8
    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
    81,223

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    I thought that might be the case - you are going to need VBA, I am afraid. Shall I move the thread for you?

  9. #9
    Registered User
    Join Date
    04-23-2024
    Location
    RI
    MS-Off Ver
    365
    Posts
    7

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Move thread? - Ok

    ... am I asking too much, considering my meager Excel skills?

  10. #10
    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
    81,223

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    No, not at all - it just can't be done with a formula.

    I'm moving this to the VBA section now.

  11. #11
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,259

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    So...if I understand correctly...All cases are needing to be populated and may not be overwritten...
    Once all cases are filled then store those values to...What...make use of later?
    Let's start off with the simple fill part...Can work on this rest once I understand application...
    Also, no need to disable events as yet...

    Enter a value in C2 and select a case...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 04-25-2024 at 11:16 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  12. #12
    Registered User
    Join Date
    04-23-2024
    Location
    RI
    MS-Off Ver
    365
    Posts
    7

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Hi sintek,

    That is very close to what I am looking for.
    Except, there is no need to prevent the overwriting of a yellow case cell.
    How hard is it to add a button to actually trigger the fill?

    In the end, I hope to apply this to approx 30 cell in a row (say ... E10:AH10)
    ... and fill the row of my choosing below row 10. Essentially storing those values so I can continue screwing around with the calculations.


    Thanks for the help!

  13. #13
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,259

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Except, there is no need to prevent the overwriting of a yellow case cell.
    See amended above
    How hard is it to add a button to actually trigger the fill?
    Not hard at all but why a button if it can happen on selection...

  14. #14
    Registered User
    Join Date
    04-23-2024
    Location
    RI
    MS-Off Ver
    365
    Posts
    7

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    That works great!

    Two reasons for a button ...
    1. The added step of pushing a button will (hopefully) make it less likely to accidentally overwrite a storage cell.
    2. Right now, if I want to overwrite the same storage cell that is currently shown in C4, I have to change C4 to a different value and then return to the case number I want. Hopefully, with a button I could repeatedly change the air velocity (C2), and keep dumping that value into the same storage cell without changing C4.

  15. #15
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,259

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Here you go...
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    04-23-2024
    Location
    RI
    MS-Off Ver
    365
    Posts
    7

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    Awesome! Much appreciated.

  17. #17
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,259

    Re: How to move data from one cell to a variety of other cells. Indirect addressing?

    ................................
    THANKS.gif

+ 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. [SOLVED] SUMPRODUCT Problem Using Indirect Addressing
    By Mike Savage in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-16-2022, 09:35 AM
  2. Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)
    By a1b2c3d4e5f6g7h8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2013, 08:42 AM
  3. [SOLVED] function or formula to put data to ... or indirect addressing in form "check box"
    By Algirdas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2012, 04:39 AM
  4. indirect addressing to a sheet
    By costadina in forum Excel General
    Replies: 5
    Last Post: 11-16-2008, 03:00 PM
  5. [SOLVED] Relative addressing with INDIRECT function
    By john in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-08-2006, 09:20 AM
  6. [SOLVED] Indirect Addressing
    By Kanga 85 in forum Excel General
    Replies: 3
    Last Post: 12-05-2005, 12:10 AM
  7. [SOLVED] Indirect addressing
    By Ken Rock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2005, 09:05 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