+ Reply to Thread
Results 1 to 13 of 13

Need help with a form. to find a value and then display a cell that is on a diff row & col

  1. #1
    Registered User
    Join Date
    05-20-2014
    MS-Off Ver
    2003
    Posts
    6

    Need help with a form. to find a value and then display a cell that is on a diff row & col

    Hello. I'm brand new here. I found this site through a Google search trying to look up ways to solve my problem.

    I'm a clerk for a company, and my job is basically to take the punch in and out times from one system, and input them into another. It's a little more complicated, but that's the part I'm trying to work on today. The first hour to hour and a half of my job, I'm basically just writing the times from one print out onto another to make it easier to reference them as I'm inputting all this data. If I could just copy and paste it into excel and have it pull out the times and put them in the correct order for me, that would save me at least an hour every night.

    I'm not even sure if what I'm trying to do is possible with excel. I've tried lookup and if, and dabbled with index-match but I can't seem to come up with something that does what I need it to.

    Basically, I would like to copy and paste the report on sheet 1. Then on Sheet 2, I've got my list of employees sorted how I need them to be.

    I'd like to have a formula that checks the list in Sheet 2 Col A(Employees) and find their name in Column D on sheet 1(Report)
    Then I'd like to be able to put in Columns B C D E their punch in , lunch out, lunch in, and punch out times.
    Let's same the Employee name is D1 on sheet 1. The times I need are E3, H3, E4, H4. So they're not in the same row or column or even in a straight line.

    Is something like this even possible? I would really appreciate any help you guys could give me. And if anyone would like a copy of my workbook I'd be happy to send one.
    Last edited by CTGuyton; 05-21-2014 at 12:31 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    Hi CTGuyton ,

    Provide a sample workbook for fast action.


    Punnam

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    Yes, it is possible. Could you upload a sample of what you're working with (with confidential information sanitized)? It makes it easier for us.

    The best I can come up with without a sample file is that an offset/match combo sounds like the best option. Something like =OFFSET('Sheet 1'!$E1,MATCH(A2,'Sheet 1'!$D:$D,0)+1,) in Sheet 2 B2.

  4. #4
    Registered User
    Join Date
    05-20-2014
    MS-Off Ver
    2003
    Posts
    6

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    test sheet.xls


    "BJ's" is where I've copied and pasted the report I'm trying to get the times from. "Print This" is where I'd like for it to put the numbers. I took the first guy on the list and Highlighted in yellow the numbers I'm trying to get.

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    I had to change some of the spelling on your Print This tab to match the BJs tab, but this works:
    test sheet.xls

  6. #6
    Registered User
    Join Date
    05-20-2014
    MS-Off Ver
    2003
    Posts
    6

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    it says #Name? I'm in Excel 03, maybe mine's outdated or something?

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    It would pay to update your profile with that info so we know. The IFERROR function is only compatible with 2007 and after. That can be gotten around by copying the cells from your data (BJs) to you Print This tab for the employee name so they are identical for the match. I will upload a changed sheet shortly.

  8. #8
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    See attached. Copy the cell with "Molina Franklyn " in it from the BJ's tab (D413) and paste values into 'Print This'!B33 and you'll see that it then works. When using the MATCH function you need to make sure the text strings actually match, including leading and trailing spaces. I am assuming that the format of the data is the same each day, so once you have the Print This tab set up correctly you shouldn't need to change it except for new employees.
    test sheet.xls

  9. #9
    Registered User
    Join Date
    05-20-2014
    MS-Off Ver
    2003
    Posts
    6

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    Thanks a lot man!! This is awesome!!

  10. #10
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    Glad to help. If this has resolved your issue you should mark the thread as solved (at the top of the thread on the right click on Thread Tools).

    If we have helped, consider adding reputation by clicking on the * at the bottom left of each post.

  11. #11
    Registered User
    Join Date
    05-20-2014
    MS-Off Ver
    2003
    Posts
    6

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    I had to leave for work, but now that I'm here, I've looked it over and seems to work out great! I have one quick question. I added a 5th and 6th column to account for a second lunch or extra punch that might throw me off. When I did, it worked fine for everyone but one. Barak Garfield. All of them get 0s but his show up blank. What might cause that?

  12. #12
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    Maybe because he didn't have a lunch break. He only had 1 clock in and one clock out. Without seeing your sample file with how you calculated the extra columns I can't be certain.

  13. #13
    Registered User
    Join Date
    05-20-2014
    MS-Off Ver
    2003
    Posts
    6

    Re: Need help with a form. to find a value and then display a cell that is on a diff row &

    i just did the same formula but +3. I assumed the same thing you did so I tried deleting a row for another person but theirs showed up with 0s.

    I've inputted tonight's report to see how it works and everything looks good. It's also corrected Barak's extra punches column too.


    One thing I noticed. The report includes it's own page breaks which throws off the formula. I'm pretty sure I can fix that though by setting the report to show one employee per page.

+ 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. Find and display the last occurance in two columns and display related cell
    By willia97 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2012, 08:14 PM
  2. Replies: 1
    Last Post: 07-17-2012, 05:28 AM
  3. Find cell diff sheet, display value of next cell
    By Sadie13 in forum Excel General
    Replies: 5
    Last Post: 02-06-2011, 12:05 PM
  4. How to use Form to Find and Display Search Result
    By xinzie in forum Excel General
    Replies: 1
    Last Post: 03-28-2009, 05:46 AM
  5. [SOLVED] Display diff text based numbers in another cell
    By sky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2006, 05:30 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