+ Reply to Thread
Results 1 to 13 of 13

IF A2 = "Blank" then copy information to another sheet

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    IF A2 = "Blank" then copy information to another sheet

    I was asked if I could help out the Payroll dept with this.

    They have an Excel Sheet that they use at the start of the day to get a headcount of employees for that night.

    The sheet looks like this

    On-Site EMPLOYEE NAMES CRAFT FOREMAN
    1 ADAMS, DARRON L. PIPEFITTERS (A-C) ADAMS, DARRON LEVON
    BOURGEOIS, JARED M. PIPEFITTERS (A-C) BILLY, BOB

    when an employee is Absent, they delete the 1 under "On-Site"

    I want to copy the information to the right for every employee that is Absent for that day and to be added to a different Sheet that is used as an Absent Log

    this is done every day

    so something like

    if A2-->A100 = "blank" then copy B2/C2/D2 to this sheet
    Last edited by Netotigr; 10-01-2013 at 01:14 AM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: IF A2 = "Blank" then copy information to another sheet

    Can you attach a sample book. GO to advanced, manage attachment, select files, upload files and hit done

  3. #3
    Registered User
    Join Date
    10-01-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF A2 = "Blank" then copy information to another sheet

    if anything on B line = blank then copy C/D/E/F to another workbook into cells A/B/C/D and write "ABSENT" on E

    now this will be done everyday
    Attached Files Attached Files

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF A2 = "Blank" then copy information to another sheet

    Hi

    Please see attached file which contains formula.
    This is an array formula and must be entered by holding Ctrl+Shift and then press Enter.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    10-01-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF A2 = "Blank" then copy information to another sheet

    ok this is exactly what I want, but when I try to use the same formula on the actual sheet that I use only the 1st name gets copied over after that nothing

    and I get

    #NUM! error..


    maybe I should just upload the sheet that I use? I'm sorry, I'm very new to this

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: IF A2 = "Blank" then copy information to another sheet

    @ Netotigr just remember to desensitize the data, e.g. you can change the name like A, B C..
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  7. #7
    Registered User
    Join Date
    10-01-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF A2 = "Blank" then copy information to another sheet

    This is the actual file that is being used.

    At the start of the shift an employee will delete the 1 from the B column from 2 sheets "GCU" & "Gasifier"

    The employee that has a "blank" is ABSENT , this sheet is currently used every day to get a break down of exactly how many employees of each craft are Absent for that day
    if you go to the "TOTALS" tab you'll see what I'm talking about.

    I need help adding these employees that are ABSENT added to the sheet "GCU Absent" & Gasifier Absent" as it is 2 different projects.

    The problem that I see is this


    Say 10 employees are absent and added to the sheet, the following day those 10 employees are NOT absent... how can I make them stay on that list?
    Attached Files Attached Files

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF A2 = "Blank" then copy information to another sheet

    Quote Originally Posted by Netotigr View Post
    ok this is exactly what I want, but when I try to use the same formula on the actual sheet that I use only the 1st name gets copied over after that nothing

    and I get

    #NUM! error..


    maybe I should just upload the sheet that I use? I'm sorry, I'm very new to this
    This an array formula and you have to enter this formula with Ctrl+Shift+Enter. Then drag formula across and down.
    Last edited by AlKey; 10-01-2013 at 08:39 PM.

  9. #9
    Registered User
    Join Date
    10-01-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF A2 = "Blank" then copy information to another sheet

    no idea what an Array formula is, guess I have to learn that first thanks anyway

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF A2 = "Blank" then copy information to another sheet

    Quote Originally Posted by Netotigr View Post
    no idea what an Array formula is, guess I have to learn that first thanks anyway
    Don't get stressed Just follow instructions below:

    1.Click on the where you have your formula and press F2 on your upper row keyboard.
    2. Now hold down Ctrl on the bottom left of your keyboard and without releasing it press Shift and now hit ENTER. You should see {} around the formula. If you see them, you entered formula right.

  11. #11
    Registered User
    Join Date
    10-01-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF A2 = "Blank" then copy information to another sheet

    ok thanks guys, got it working... now here's the last question


    All the employees that where Absent today where added using the formula , everything is perfect.
    Tomorrow everybody will have a 1 by their name aka not Absent, so if the formula keeps working it will delete the employees it added today, hope it makes sense

    so what can I do to keep the names of the employees added but for those cells to ignore the formula and just keep the info on them

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF A2 = "Blank" then copy information to another sheet

    I think you are talking about preserving older records? What you can do copy these rows and paste on another tab without formula.
    Copy, Paste Special Values and Formats. That way these records will not change.
    Hope this help.

    Also, please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  13. #13
    Registered User
    Join Date
    10-01-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF A2 = "Blank" then copy information to another sheet

    done, yes thank you all will rep

+ 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] Hard to explain, please help
    By FooFighter616 in forum Excel General
    Replies: 4
    Last Post: 06-13-2012, 02:20 PM
  2. [hard to explain problem in few words]
    By aka85 in forum Excel General
    Replies: 5
    Last Post: 08-30-2007, 05:58 AM
  3. Hard to explain question
    By odditie in forum Excel General
    Replies: 4
    Last Post: 02-16-2007, 05:09 PM
  4. Please help!!! This is hard to explain!
    By Robert Sadler in forum Excel General
    Replies: 4
    Last Post: 02-02-2005, 12:28 AM
  5. Please help!!! This is hard to explain!
    By Robert Sadler in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2005, 05:48 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