+ Reply to Thread
Results 1 to 14 of 14

Formula to copy data from one cell to another

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    Wanganui New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    23

    Formula to copy data from one cell to another

    Hi
    I have a worksheet that adds up figures the total ends up in I6. At the end of every month I need the total in I6 to copy to a different cell E2, F2, etc (First month E1, Second Month F1, etc) . I have a formula:
    Please Login or Register  to view this content.
    =IF(e1<=TODAY(),$I$6,"")
    Please Login or Register  to view this content.
    The problem with the formula is that when I6 total changes after the end of the month cell E1 total changes I need it to only caculate the figure on that last day of the month and when my total changes in I6 after that date it not add anything more to the total in E1.

    I also need the data in E1 to stay in the cell when the next months totals appear in F1.
    I have attach a sample

    Thanks Angela
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula to copy data from one cell to another

    Is this formula helpful to you. See the attached workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    Wanganui New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Formula to copy data from one cell to another

    Hi

    Hi
    Sorry I didn't explain myself very well the total in I6 keeps caculating thru out the year I want the total in that cell at the end of each month to copy to E1 at the end of that given month and then as the total in I6 changes the amount in E1 stays the same and at the end of the next month F1 is populated with the new running total.

    The actual dates in my spread sheet in Colunm G isnt the info I am tring to gather I just want a snap shot of total of the whole sheet I6 on a given day.
    Hope this makes sense

    Angela

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula to copy data from one cell to another

    Upload the workbook with the actual dates you are dealing with, though the in the sheet what I provided, the formula does not depend on I6 because it is looking up the whole amount column based on date criteria on E1,F1 and G1 etc. But anyway please upload workbook as I said to make your point more clear.

  5. #5
    Registered User
    Join Date
    07-31-2013
    Location
    Wanganui New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Formula to copy data from one cell to another

    I only need a formula that takes what is in I6 on a given date and then copies that data to another cell at the end of each month. The dates in column g don't have anything to do with the information I am trying to collect I only need the figure of I6 at the end of a given month. As it is a rolling figure this formula is if I forget to check it at the end of the month it will be there when I check it at a later date.

    Angela

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula to copy data from one cell to another

    What values will be there in column E1,F1,G1 etc.? Will they contain month's name or a first of last date of a month or a date formatted as "MMM" showing the month name? If I am guessing right, you want to calculate the sum(H:H) in cell I6 and then extract its value in cells E2,F2 etc. so that last cell (say F2) in row2 will contain the latest value of I6, and you don't want cell E2 to update in future. Right?

  7. #7
    Registered User
    Join Date
    10-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Formula to copy data from one cell to another

    Hi All, Please help me guys,

    What i need to do is:

    I've two sheets(1,2), in sheet1 have values from L11 to L86 and v11 to v86. In sheet2 i wants to max value of V column so i used max formula and i got max value in sheet2 C8, max value of V column change in every 3 secs so after every 3 secs c8 value also change. Suppose at present v11 value is 1000 and it is max value of column v, so acoording to max formula it comes automaticaly in sheet2 c8.. now what i need is: when ever v11 column's max value comes in c8, at the same time i want the value of L11 value in E8, after 3 secs when max value of v column is change and suppose this time max value is in v16 so it will come automatic in c8 because of max formula, so at the same time i want L16 value automaticaly in E8, now guys please suggest me what and how i can do this ? please explain in bit details as i'm novice in excel, i'm using excel 2007 by the way.

    Thanks a ton in advance,
    regards

  8. #8
    Registered User
    Join Date
    07-31-2013
    Location
    Wanganui New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Formula to copy data from one cell to another

    Hi sktneer

    Yes you are correct on all accounts. E1 F1 G1 will contain heading dates either Jan, Feb, Mar etc etc or 31/01/14, 28/02/14, 31/03/13 it doesn't matter as long as the data from column H:H or (I6)copies on the last day of the month to the correctly dated cell E2, F2 G2 and when we add more data to H:H after that date it doesn't add to the prevous months cell.

    Yes E2,F2,G2 will have the latest values.

    I hope you can help me with a formula now we have the tricky bit sorted.

    Sorry its been such a long drawn out excise to explain my self

    Angela

  9. #9
    Registered User
    Join Date
    10-14-2013
    Location
    Saturn
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Formula to copy data from one cell to another

    Either use a macro that copy paste value, or use circular reference.

    In E2, use

    =IF($C$1<E1,$I$6,E2)

    and drag across.

    So when the condition fails, the cell would just return itself.

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula to copy data from one cell to another

    I have come to the conclusion that in order to meet your requirements a formula would not be good enough. Better you look for a VBA code to do this. I have written a code for you. Please see the attached workbook.
    In this workbook you have a button called "UPDATE", you can click this button to see if it is working as per your requirement.
    I have added no formula in the sheet. You can change the dates (custom formatted as MMMM-YYYY) in E1,F1,G1...etc as per your need.

    To check the code, I advise you to delete all the records in column G and H (for dates and amount) and add record one by one with different dates and each time click the button to update the record. Once you input more data with new dates the values in cells E2, F2...etc would remain unchanged as per your need.

    I hope it helps.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-31-2013
    Location
    Wanganui New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Formula to copy data from one cell to another

    Hi skneer

    I have had a look and it looks like it is working I will copy your code into place and come back to you but so far it looks like it is going to work


    Angela

  12. #12
    Registered User
    Join Date
    10-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Formula to copy data from one cell to another

    Quote Originally Posted by jd16 View Post
    Hi All, Please help me guys,

    What i need to do is:

    I've two sheets(1,2), in sheet1 have values from L11 to L86 and v11 to v86. In sheet2 i wants to max value of V column so i used max formula and i got max value in sheet2 C8, max value of V column change in every 3 secs so after every 3 secs c8 value also change. Suppose at present v11 value is 1000 and it is max value of column v, so acoording to max formula it comes automaticaly in sheet2 c8.. now what i need is: when ever v11 column's max value comes in c8, at the same time i want the value of L11 value in E8, after 3 secs when max value of v column is change and suppose this time max value is in v16 so it will come automatic in c8 because of max formula, so at the same time i want L16 value automaticaly in E8, now guys please suggest me what and how i can do this ? please explain in bit details as i'm novice in excel, i'm using excel 2007 by the way.

    Thanks a ton in advance,
    regards
    no one giving me reply here

  13. #13
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula to copy data from one cell to another

    Quote Originally Posted by jd16 View Post
    no one giving me reply here
    Start a new thread instead of posting your questions in other posts. Its against the forum rules.
    Start a new thread and forum members may provide you a solution you need. And one more thing, don't forget to upload a workbook with a clear explanation in the sheets itself by highlighting the cells, rows or columns where you want to get the help for with a remark if needed.

  14. #14
    Registered User
    Join Date
    10-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Formula to copy data from one cell to another

    Many thanks to you for lighting sktneet I will do the same for sure.

+ 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. Replies: 8
    Last Post: 12-05-2021, 03:25 PM
  2. Need help with formula to copy data from another cell only if the cell is empty
    By mendoza1964 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2012, 07:13 PM
  3. Replies: 1
    Last Post: 05-12-2009, 03:18 AM
  4. Formula - Copy data to remote cell
    By smell_fire in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2008, 05:51 PM
  5. [SOLVED] how do i copy just the data and not the formula in a cell?
    By Holden Caulfield in forum Excel General
    Replies: 11
    Last Post: 03-10-2006, 05:20 PM

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