+ Reply to Thread
Results 1 to 10 of 10

I need to define a cell must contain the value of another cell .

  1. #1
    Registered User
    Join Date
    11-10-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    M365 2209
    Posts
    22

    I need to define a cell must contain the value of another cell .

    In my workbook, Cell A1 contains a formula. I need to define cell B5 so that it contains the value in cell A1 and not the formula.

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

    Re: I need to define a cell must contain the value of another cell .

    Just this in B5:

    =A1

    Administrative Note:

    Is you forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-10-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    M365 2209
    Posts
    22

    Re: I need to define a cell must contain the value of another cell .

    I am using Microsoft Office 365 running under Windows 11

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

    Re: I need to define a cell must contain the value of another cell .

    Then please update your forum profile, which tells us you are using Excel 2007!

    Is what I suggested working for you?

    If not, there are instructions at the top of the page explaining 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. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

  5. #5
    Registered User
    Join Date
    11-10-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    M365 2209
    Posts
    22

    Re: I need to define a cell must contain the value of another cell .

    Thanks ALIGW.

    Cell A1 contains the result of a formula, the answer to which is 987. If I were to copy cell A1 to cell B5 and paste values, I will get the value 987 in cell B5 not the result of the formula. So, can I define cell B5 in such a way that it contains the contents of cell A1, but as value 987, not the formula.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,780

    Re: I need to define a cell must contain the value of another cell .

    Yes, as I said above!

    In cell B5:

    =A1

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    1
    987
    A1: =SUM(E1:F1)
    900
    87
    2
    3
    4
    5
    987
    B5: =A1
    Sheet: Sheet1

    Provide a sample workbook if this is not what you want.
    Last edited by AliGW; 10-16-2022 at 09:00 AM.

  7. #7
    Registered User
    Join Date
    11-10-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    M365 2209
    Posts
    22

    Re: I need to define a cell must contain the value of another cell .

    Thanks again for your help.

    Unfortunately that doesn't help as I am copying cell B5 within a macro to a cell in another workbook, so I need the value 987 in the other workbook cell.

    Is there no cell format that I can use for cell B5, so that when I define cell b5 as =A1, the contents of cell b5 will be 987.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,780

    Re: I need to define a cell must contain the value of another cell .

    No, there isn't. But you should be able to have the macro tweaked to take the value of the cell.

    I'll move this to the VBA section - I can't help you with that, I am afraid.

  9. #9
    Registered User
    Join Date
    11-10-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    M365 2209
    Posts
    22

    Re: I need to define a cell must contain the value of another cell .

    Thanks again for your help.

    Unfortunately that doesn't help as I am copying cell B5 within a macro to a cell in another workbook, so I need the value 987 in the other workbook cell.

    Is there a cell format that I can use for cell B5 so that when I give it the formula =A1 and copy it to the other workbook cell, the contents of the receiving cell will be 987 and not A1 in the source workbook.

  10. #10
    Registered User
    Join Date
    11-10-2010
    Location
    Cape Town, South Africa
    MS-Off Ver
    M365 2209
    Posts
    22

    Re: I need to define a cell must contain the value of another cell .

    Thank you so much for trying to help.

    It is much appreciated.

+ 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. Once value match then copy Sheet 1 Define cell & paste to another Sheet 2 Define cell
    By Dharmesh.Sabalpara in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2021, 12:27 PM
  2. Need to define a search or define instruction to extract parts of data from cell
    By Dawn Clark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2021, 02:45 AM
  3. Replies: 3
    Last Post: 11-02-2018, 03:05 PM
  4. How to define range of cell name referring to certain cell value?
    By zenalan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2014, 07:07 AM
  5. [SOLVED] Attempting to define content in cell based on update of other cell in same row.
    By ychartra01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2013, 07:04 PM
  6. Copy values of cell into another cell using algebra to define the destiation cell
    By Glensafro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2012, 07:06 AM
  7. Define color of row checking two dates within same cell and text in other cell
    By amragl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2011, 07:33 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