+ Reply to Thread
Results 1 to 9 of 9

Copy a row result of formula as a value in another sheet as a database

  1. #1
    Registered User
    Join Date
    11-10-2014
    Location
    Egypt
    MS-Off Ver
    Excel 360
    Posts
    19

    Copy a row result of formula as a value in another sheet as a database

    Hi its my first enquiry here,
    please im not professional in Vba, just know some basics
    i need to copy the values resulted from a formulas in the range of sheet1!D31:O31 to match the year in sheet2!A:A and paste the values in its row starting from column B... or paste after the last filled row
    p.s: can also check the cell of the year in A3 in sheet1?
    code please!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Copy a row result of formula as a value in another sheet as a database

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    11-10-2014
    Location
    Egypt
    MS-Off Ver
    Excel 360
    Posts
    19

    Re: Copy a row result of formula as a value in another sheet as a database

    Thanks,
    the attached workbook contains sheet called Entry where the icon contains the macro action i need.
    under it there is the cell where i need to check the year(Entry!A3), so to find in the "Historical data" sheet the corresponding year in column A and to paste the copied values from sheet "All data" in the range D31:O31 i.e: from january to december which will be filled during the year from the data in the sheet "Shipments" and then by the new year i want to reset the data in "shipments which will clear the values in the desired range, so i want every time the macro copy the values in Historical data as a data base in front of the corresponding year..
    am i clear. please help in that
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-10-2014
    Location
    Egypt
    MS-Off Ver
    Excel 360
    Posts
    19

    Re: Copy a row result of formula as a value in another sheet as a database

    Any body going to help. ?!?!? reply please

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Copy a row result of formula as a value in another sheet as a database

    Please Login or Register  to view this content.
    Try the attached sample.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-10-2014
    Location
    Egypt
    MS-Off Ver
    Excel 360
    Posts
    19

    Re: Copy a row result of formula as a value in another sheet as a database

    thanks so much, appreciated.
    except for the last line should be rn3.value = rn2.value
    thnx

  7. #7
    Registered User
    Join Date
    11-10-2014
    Location
    Egypt
    MS-Off Ver
    Excel 360
    Posts
    19

    Re: Copy a row result of formula as a value in another sheet as a database

    another question please, can i use same variables for other ranges in the same sub, or should i create another sun with another values in the same module?!?!

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Copy a row result of formula as a value in another sheet as a database

    Quote Originally Posted by Shalaby View Post
    thanks so much, appreciated.
    except for the last line should be rn3.value = rn2.value
    thnx
    rn2 was the range you wanted the results, so why would you want rn3=rn2 ?


    rn2 needs to equal the range found in Historical Data.

  9. #9
    Registered User
    Join Date
    11-10-2014
    Location
    Egypt
    MS-Off Ver
    Excel 360
    Posts
    19

    Re: Copy a row result of formula as a value in another sheet as a database

    no i want the value in rn2 to be copied to rn3 where ill fill as a data base "historical data" so the source in rn2 and the destination in rn3
    ..
    i want to repeat this step to acquire another values from "All data" to the same sheet"historical data" and search for the same value of rn1 in another row in column 1.. could this be applicable? i mean is the following code correct?
    Please Login or Register  to view this content.

+ 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. Search database using userform return result in another sheet
    By ankuagarwal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2013, 04:19 AM
  2. Replies: 7
    Last Post: 12-03-2012, 03:10 AM
  3. Copy result data of formula to another sheet
    By dutchdog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-05-2012, 10:36 PM
  4. Copy one record with subdata (Form Sheet) to Database Sheet (Collection)
    By vrgiloilo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2011, 01:12 AM
  5. Database sheet need result in input & output
    By hasin in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-10-2008, 01:30 PM

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