+ Reply to Thread
Results 1 to 6 of 6

how to assign a part of an array to a cell

  1. #1
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    how to assign a part of an array to a cell

    I'm using an array to pull stock info. Part of this array is for a stock symbol.
    I'm trying to see if it is possible to assign cell A1 for that piece of the array so I can change the symbol bytyping a new symbol in A1. If so I would create a macro and assign it to a button to handle ctrl+Shift+enter.
    Do I have any other options if this isn't going to work?

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to assign a part of an array to a cell

    That will work fine.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Re: how to assign a part of an array to a cell

    I wasn't clear, my array starts in D4
    I wanted to use A1 to change a part of that array when I want to pull another stock. I've tried to put
    Please Login or Register  to view this content.
    in the array where the symbol normally goes, thinking i would then be able to type whatever symbol I wanted in A1 and it take place in the array. This doesn't happen.

    I'm trying to type a stock symbol into A1 and it replaces the current symbol within the array. How can I do that?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,576

    Re: how to assign a part of an array to a cell

    It would help if you gave us the array formula. If your formula currently contains your Stock symbol in quotes (e.g. "JNJ"), simply remove the quotes and use $A$1. Does that help?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Re: how to assign a part of an array to a cell

    Quote Originally Posted by ChemistB View Post
    It would help if you gave us the array formula. If your formula currently contains your Stock symbol in quotes (e.g. "JNJ"), simply remove the quotes and use $A$1. Does that help?
    doesn't work.
    Here's the formula:
    Please Login or Register  to view this content.
    ZS F0 is the quote. When I try$A$1 as the input cell it doesnt work.

  6. #6
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to assign a part of an array to a cell

    Perhaps posting a sample sheet showing your current data and formulas, plus desired result page? I can't figure out what is going on with your sheet from what I've read so far.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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