+ Reply to Thread
Results 1 to 13 of 13

Unable to populate column using data from two different sources

  1. #1
    Registered User
    Join Date
    01-29-2011
    Location
    Swansea
    MS-Off Ver
    Excel 2003
    Posts
    17

    Unable to populate column using data from two different sources

    Haha i thought i was pretty good at excel but this one has me completely stumped. i might be overthinking it i don't know. I've stripped it right back though so i can get some second eyes over it.

    Here's what it should do:
    Pick a name from the dropdown on the cover tab and it display how much work was done each hour.

    Here's the Problem
    The formatting on the raw data tab is horrible. Time and Date are all in one cell and its a decimal number that's formatted instead of a text cell, because that would be to easy! (that is where most of my problems have come from) Now this data will be pulled daily so the decimal number is always different.

    any help would be hugely appreciated i can't tell you how many hours i've been staring at this thing for !

    I've attached a version with a lot less info in for you guys to have a look at the core data is there just all the extra is removed.

    Thanks !
    Attached Files Attached Files
    Last edited by Azzheasman; 01-17-2017 at 08:08 AM. Reason: Breach of Rules, inaccurate tite

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Please Help

    Unfortunately your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Please Help

    Please update your thread title as per the Moderator's request; I have a solution for you but I cannot post it until you have complied with the request.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Please Help

    deleted deleted as your post does not comply with Rule 1
    Last edited by samba_ravi; 01-17-2017 at 08:10 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Unable to populate column using data from two different sources

    e4=SUMPRODUCT((HOUR(Raw!$A$2:$A$530)=MOD(LOOKUP(9^9,LEFT($D4,{1,2})+0),12)+IF(RIGHT($D4,2)="pm",12,0))*(Raw!$B$2:$B$530=$C$3)*(Raw!$C$2:$C$530))
    try this and copy towards down

  6. #6
    Registered User
    Join Date
    01-29-2011
    Location
    Swansea
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Unable to populate column using data from two different sources

    thanks :D Works a treat in the small file ill transfer it over to the bigger file now and test it

    Thanks again!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Unable to populate column using data from two different sources

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

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Unable to populate column using data from two different sources

    Sorry: should have said that I changed the times like 7am to 7 AM, that is, a proper time (with a numeric value) and then multiplied by 24 to make the comparison.

  9. #9
    Registered User
    Join Date
    01-29-2011
    Location
    Swansea
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Unable to populate column using data from two different sources

    Both worked brilliantly, and there i was with SUMIF's thinking a was the dogs danglies ! Thanks again !

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Unable to populate column using data from two different sources

    And another alternative without changing the times:

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

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Unable to populate column using data from two different sources

    Quote Originally Posted by TMS View Post
    And another alternative without changing the times:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but it is not showing correct result at 12pm

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Unable to populate column using data from two different sources

    And the first one appears not to work correctly for 8am

    Ho hum ....

  13. #13
    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,148

    Re: Unable to populate column using data from two different sources

    If the times in the RAW data are always HOURS (07:00, 08:00 etc) then in COVER set times to Excel times formatted as hh:mm AM/PM and use

    =SUMPRODUCT(--(Raw!$C$2:$C$530),--(Raw!$B$2:$B$530=Cover!$C$3)*(ROUND(MOD(Raw!$A$2:$A$530,1),8)=ROUND(D4,8)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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