+ Reply to Thread
Results 1 to 6 of 6

pick and retain values of cells

  1. #1
    Registered User
    Join Date
    05-19-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    7

    pick and retain values of cells

    Dear Team
    I put a formula =IF(A3=$A$1,PFL!AB202,0) that gives me 782.9 values from other sheet. now the nex day 11/8/2020 i want to retain 782.9 but against date 11/08/2020 it should be changed in front of 11/08/2020

    Column A
    10/08/2020 (date will be changed auto to next date)

    10/08/2020 782.9 (data to be retained for next date
    11/08/2020 0 (Next data should be here but i want to keep above data also, it will give me whole month fig. date wise.)
    12/08/2020 0
    13/08/2020 0
    14/08/2020 0

    Please help me developing the formula..

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    1,918

    Re: pick and retain values of cells

    When you use a formula to extract data from one sheet to another, the value displayed by that formula will always be whatever the cells on the other sheet calculate to. So if you want to retain a value that the formula produces you would need to put that value in a different cell as only a value. You cannot keep using the same cell with the formula and expect it to be static when the precedent cells on the other sheet are being changed. If you are finished with the cell you want to keep, you can copy, paste special, values to eliminate the formula and just keep the value.
    Last edited by JLGWhiz; 08-12-2020 at 04:03 PM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, click the 'Go Advanced' button, Then click 'Manage Attachements' and follow the menu.
    Thinking I am smart and knowing I am smart are two entirely different levels of schizophrenia.

  3. #3
    Registered User
    Join Date
    05-19-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: pick and retain values of cells

    thanks for reply.
    please let me know if paste special command can be applied through any formula.

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    1,918

    Re: pick and retain values of cells

    Quote Originally Posted by azii View Post
    thanks for reply.
    please let me know if paste special command can be applied through any formula.
    PasteSpecial cannot be applied with a formula. You have to do it manually or with VBA/VBS code. Probably, in your case, the easiest way is to just manually type the value you want to keep into the same cell where it is displayed, That will kill the formula and make it value only.
    Last edited by JLGWhiz; 08-13-2020 at 02:03 PM.

  5. #5
    Registered User
    Join Date
    05-19-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: pick and retain values of cells

    anybody, please help me in developing formula for retaining cell values.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    4,988

    Re: pick and retain values of cells

    pl upload a sample file .it can be done using worksheet event.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. VBA Code to pick up values from cells
    By Excel_2k13 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-01-2015, 09:55 AM
  2. Creating a forumula to pick up values in other cells...
    By wench02 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2015, 08:34 AM
  3. [SOLVED] Delete/Remove fromula from cells and retain values
    By Jovillanueva in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2015, 04:19 AM
  4. Transpose values and retain format of recipient cells
    By coopedup in forum Excel General
    Replies: 3
    Last Post: 03-18-2014, 07:56 AM
  5. Replies: 0
    Last Post: 02-26-2013, 05:08 AM
  6. Replies: 1
    Last Post: 10-25-2012, 05:46 AM
  7. search will not pick up cells values that are hyperlinked
    By Tony Vargo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2008, 10:02 AM

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