+ Reply to Thread
Results 1 to 7 of 7

Calculate the value and paste into a cell using a formula

  1. #1
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Calculate the value and paste into a cell using a formula

    I have a date of birth recorded in separate cells that I copy into a table

    The table has three divisions with identifiers

    I need a formula that will look at the two cells anc copy and paste in to the respective cell in the table


    attaching a file with a little explanation

    thank you for the help

    regards

    Rajan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Calculate the value and paste into a cell using a formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: Calculate the value and paste into a cell using a formula

    Hi

    Thank you for the solution

    I have a small issue

    If the identifier is 4 or 9 or 2 , it needs to match with date for exampleif P3 identifier is $ and P will be blank in Y3 the identifier is 9 so Y4 becomes 9 and can the formula accommodate for this

    Now it copies

    attached the sheet with an example

    Rajan
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Calculate the value and paste into a cell using a formula

    No idea what you want. What is "identifier"? And Y3/Y4 are blank in your example as is P3.

  5. #5
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: Calculate the value and paste into a cell using a formula

    Hi


    For the formula, we need to first check if the date is after the 9th of each month, thereafter we can enter the value in to N10 after it matches with N9

    if the date passes the first, the digit of the D D are added together and mod function is to be used to get the value to under 9 and then enter the result into N10

    When the date is between 1st to the 9th, we do nothing


    REgards

    rajan
    Attached Files Attached Files
    Last edited by khanaran; 03-20-2021 at 03:24 PM. Reason: correct request

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Calculate the value and paste into a cell using a formula

    if the sum of AN1:AO1<>0 , nothing happens and N9 will be blank
    This will always be true if we have a date in AN1:AU1.

    No more today!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Calculate the value and paste into a cell using a formula

    Welcome (back) to the forum.

    Thanks for your question. However, we have just found out that you have posted the same question elsewhere.... and haven't told us. Feel free to cross-post on other sites...

    But. Every forum has its rules. Please see Forum Rule #3 about cross-posting. So.

    Do not keep it a secret. We all are willing to give you our time, freely. However, some of us get very annoyed if we waste our time developing a solution for you, when you already have a nice solution elsewhere. All we ask is that you show us some respect and tell us:

    1) if you have cross-posted, and

    2) the URL of the cross posts.

    That way, those of us who don't want to waste their time can quickly check to see if you're already happy with another solution.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. If then -> paste and calculate formula from cell
    By viniciusdcs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2020, 10:30 AM
  2. Excel 2010 - VBA - calculate and Copy paste value upon data entry in another cell
    By lantuan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2019, 08:02 AM
  3. [SOLVED] Formula: If cell 3 is blank have cell 1 calculate, if cell 3 filled have cell 2 calculate
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2016, 09:34 AM
  4. Replies: 1
    Last Post: 03-13-2013, 02:27 PM
  5. VBA code to calculate value against given parameters then paste result value in cell
    By deepakya3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2011, 11:01 AM
  6. Calculate,Copy, Paste Cell Group Macro Adjustments
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2006, 11:50 PM
  7. Calculate,Copy, Paste Cell Group
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-23-2006, 09:35 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