+ Reply to Thread
Results 1 to 4 of 4

Automatic copy of a particular cell value to another based on a condition

  1. #1
    Registered User
    Join Date
    06-30-2023
    Location
    india
    MS-Off Ver
    2019
    Posts
    2

    Unhappy Automatic copy of a particular cell value to another based on a condition

    In an excel sheet

    Column A has the name of the groups
    COlumn B has either IN or Out based on "=IF(G>0,"OUT","IN")"
    column C has the number of agents in the corresponding groups in column A
    COlumn D indicates the application on which Groups are logged in
    COlumn E has the login time in format hh:MM
    COlumn F has logout time in format HH:MM
    COlumn G has the total login hour for that session calculated based on "=(F-E)*C"
    Column H has the name of the location from which the group is and is obtained by "=VLOOKUP(A3,J:N,5,0)"
    COlumn I has the date in format mm/dd/yyyy
    COlumn J has the name of the groups again
    COlumn K has the original count
    COlumn L has the last logout time based on "=LOOKUP(2,1/($A$2:$A$761=J2),$F$2:$F$761)"
    Column M has the name of the application where the groups are logged in and fetcher from Column D by formula "=LOOKUP(2,1/($A$2:$A$761=J2),$D$2:$D$761)"
    Column N has the name of the location which we manually enter
    Column O has the shift login time of the corresponding group
    COlumn P has the shift logout time of the corresponding group
    Column Q shows whether the group is logged in or logged out based on "=IF(L3=0, "IN", "OUT")"


    now whenever we make any new entry in column a
    and when we add time in column E of the same row

    is it possible that to automatically copy the column E cell(Latest manual entry) time value to column F cell of second last entry of the same group

    Demo_Test.xlsm
    Last edited by deepak8884; 07-06-2023 at 01:00 PM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,938

    Re: Automatic copy of a particular cell value to another based on a condition

    Hi and welcome.

    There are instructions at the top of the page on attaching a sample workbook.

    Show us a small amount of dummy data and what your expected outcome is. It will make it a whole lot easier to help if we can see it in context.

    BSB

  3. #3
    Registered User
    Join Date
    06-30-2023
    Location
    india
    MS-Off Ver
    2019
    Posts
    2

    Re: Automatic copy of a particular cell value to another based on a condition

    I hope I have attached the demo file now. "Demo_Test.xlsm"

    Any help would be really appreciated.

    What we need to do is

    now whenever we make any new entry in column a
    and when we add time in column E of the same row

    is it possible that to automatically copy the column E cell(Latest manual entry) time value to column F cell of second last entry of the same group

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,960

    Re: Automatic copy of a particular cell value to another based on a condition

    Perhaps the following will help.
    1. Convert the data range into an Excel table
    2. Populate column F using: =IFERROR(INDEX([Login],AGGREGATE(15,6,(ROW([Login])-ROW(Table1[#Headers]))/([Groups]=[@Groups])/(ROW([Groups])>ROW([@Groups])),1)),"")
    Let us know if you have any questions.
    Edit: Some of the other columns displayed errors after the range was converted to a table and the formula was added in column F. I believe those columns are now displaying correctly.
    Attached Files Attached Files
    Last edited by JeteMc; 07-07-2023 at 12:17 PM. Reason: Updated file
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Copy Cell Data to another sheet based on Cell Condition
    By Madhusoodan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-19-2021, 08:41 AM
  2. [SOLVED] Automatic copy row to other sheet if condition met
    By FredVe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2017, 07:46 AM
  3. how to have one cell copy to another based on condition
    By Curious Dude in forum Excel General
    Replies: 4
    Last Post: 03-10-2014, 07:37 AM
  4. [SOLVED] Copy data into another cell based on condition
    By SMILE in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2012, 07:59 AM
  5. How to copy a cell range based on a condition
    By GregoryA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2012, 01:42 AM
  6. Create an Automatic Pop-up Based on a Condition
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2009, 03:09 AM
  7. copy cell based on condition where row numbers are not the same.
    By john gibson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2006, 09:25 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