+ Reply to Thread
Results 1 to 19 of 19

Multiple data entry leading to multiple worksheets....I'm baffled!!

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Multiple data entry leading to multiple worksheets....I'm baffled!!

    Hi, wonder if someone might help me out?

    I've attached a sample of spreadsheet that hopes backs up this explanation!

    Basically, I'd like to create data of work done by different people, sometimes charged at different rates (depending on the work done), where the data is then split into a number of different areas.

    Hopefully, the attached example spreadsheet will make sense. Let's say I manually enter "AB" in "Contractor" column, then "1" as "Contractor reference", that should then determine a a rate appropriate to the reference in the "Rate" column. The "Hours" column reflects the time taken to do the job and will be manually entered. The "Amount" column is a simple multiple of rate / hours.

    The columns marked "Phase", "Task" and "Activity" will be manually entered to reflect how the work is distributed within a number of options in each category. So, for example, we have between 1 and 15 phases, 1 and 41 tasks, and 1 and 10 activities.

    Each time we allocate a phase / task or activity number, I'm trying to get a seperate worksheet to total up everything in each phase or task that has an amount recorded. On a seperate worksheet, I need the same detail as "Activity". As you'll hopefully see, the total amounts will always be the same under each category as it is for the total in the original.

    I do hope this all makes sense! As you'll see, I've given an example of the initial data entry and, lower down the spreadsheet is a sample of what I'm trying to get automatically in two seperate worksheets within the same workbook - let's call one of them "Phase Task" and the other "Activity"

    You'll see that, for example, there are two entries allocated to "Phase 6" - the total cost in this sample is £44 and that is the amount that appears on the "PhaseTask" sheet against Phase number 6.

    It's worth perhaps mentioning that the original data entry will be unlimited rows of data.....

    Just in case the attachment hasn't worked, here is a copy of the sample sheet.....

    MANY thanks for anyone who can help me!!!

    Mike

    Contractor Description of work done Contractor reference Rate Hours Amount Phase Task Activity
    AB 1 £20.00 0.20 £4.00 6 8 2
    AB 2 £30.00 1 £30.00 4 9 4
    HP 4 £20.00 2 £40.00 6 7 2
    Total £74.00

    Contractor reference determines rates which may differ per contractor Data to auto-populate to Separate sheet (let's call it PhaseTask sheet) Data to auto-populate to Separate sheet (let's call it Activity sheet)
    Eg AB 1 £20
    AB 2 £30 Total Amount Total amount Total amount
    CR 3 £10 Phase 1 Task 1 Activity 1
    HP 4 £20 2 2 2 £44
    3 3 3
    4 £30 4 4 £30
    5 5 5
    6 £44 6
    7 7 £40
    8 8 £4
    9 £30
    Total £74.00 £74.00 £74.00
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Not sure if I understand but please try.

    F3 =VLOOKUP(E3,$C$9:$D$12,2,0)
    I11 =SUMIFS($H$3:$H$5,$I$3:$I$5,H11) you can use sumifs for task and Activity

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Bo-Ry welcome to the forum.

    OP's profile shows Excel 2003 and has uploaded a *.xls file. SUMIFS doesn't work in that version. It was introduced in 2007. SUMIF will work.

    If it helps here is a "cheat sheet"

    https://www.excelfunctions.net/excel...tml#SFunctions
    Dave

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    FlameRetired thanks, I didn't look for version and file extension.
    I11 =SUMIF($I$3:$I$5,H11,$H$3:$H$5)

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    You're welcome. Glad it helped. Thanks for the feedback.

  6. #6
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Guys, this is wonderful thank you. Just a couple of follow ups if I can?

    I've attached another copy of the sample spreadsheet and used the SUMIF formula suggested......as you can (hopefully!) see, everything looks great! The total (in this sample data, £140) appears in H9 as it should and also appears, as it should, in I24, L24 and P24. Thank you!!! But, if I don't have any data in cells E3:E8, the response is very different! No data in any of those cells gets a response "#N/A" in corresponding cells in columns F and H, as well as H9.

    It also completely throws the bits I'm after (rows 12 to 24)!

    Is there any way that lack of data in cells E3 to E8 would allow the same totalling / transfer of data without the "#N/A" response?

    Thank you - again - so much
    Attached Files Attached Files

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Try in F3 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Genius!!!

    Thank you SO much for your kind help. I really appreciate it!!!

    Best wishes

    Mike

  9. #9
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Guys, I'm nervous about asking for a little more help, but have just been reminded there is some more automation needed....

    Once again, a sample spreadsheet attached should help explain things! As you'll see, I've added a section (yellow filled cells)....Is it at all possible to have this section collecting data from rows 2-7 and collating it here? So, contractor AB / reference 2 appears twice and what I'd love the sheet do is to add up the hours and total amount as per the sample data I've manually entered.

    Once again, your help really appreciated....Thank you!
    Attached Files Attached Files

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    You have trailing spaces in column O and column B data. Those spaces need to be deleted or this will not work.Then this in Q2 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in R2 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Thank you for this. I'm following insructions to trim trailing spaces as per here (https://www.ablebits.com/office-addi...-entire-column) but failing miserably! When I do this, and then copy the formulas, two things happen:

    Cells Q2:Q5 turn white and blank
    Cells R2:R5 respond "#N/A"

    I'm sure this is my inability to follow the instructions around trailing cells properly! But wondered if you might advise?

    Thank you!

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    An oversight at my end. The first formula has COUNTIFS. Excel 2003 does not have COUNTIFS. If you are not getting an error in Q2:Q5 I suspect you have newer version. If that is the case please update your profile ... members tailor solution with that in mind (usually ).

    Could you upload the file you are talking about ... with sensitive data fictionalized?

  13. #13
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Folks, I'm sorry to ask again. This time, I've attached a further spreadsheet that I hope sets out the final part of what I am looking to achieve. "FlameRetired" - I have managed to get the formula you suggested to work (thank you), but it seems only to record the number of times a "contractors reference" is added, not the number of hours that each entry records. And, I;m afraid the result of the second formula you suggested merely gives me a blank cell....Perhaps - probably - it's me.....

    Just to recap - at this final stage, what I am trying to do is to be able to enter, manually, details of - lets say - work done by different "contractors" and to then ask the spreadsheet to calculate, from what is likely to be many entries, details of a) how many hours each contractor has recorded and b) the cost per contractor.

    There will be a set "pool" of contractors, but not all will be used to do tasks, and there will be times where the hours worked are recorded seperately - for example, different dates might be required over a period of time. So, as I hope is clear from the attached, this manual data would be in the section marked "Data entered to spreadsheet". The section in yellow fill is the part I'm hoping will populate correctly! For the purposes of this request, I've entered data to the yellow fill manually in an effort to demonstrate the outcome I'm hoping can be achieved automatically! (In this case, it wasn't hard to do - but if there are many,many different entries, that task becomes a lot harder to do manually!)

    Thank you very much - again!!
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Quote Originally Posted by FlameRetired View Post
    An oversight at my end. The first formula has COUNTIFS. Excel 2003 does not have COUNTIFS. If you are not getting an error in Q2:Q5 I suspect you have newer version. If that is the case please update your profile ... members tailor solution with that in mind (usually ).

    Could you upload the file you are talking about ... with sensitive data fictionalized?
    Oops, sorry I've just seen your reply, thanks!

    Perhaps my latest submission will help you better! Hope so, thank you

  15. #15
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Quote Originally Posted by FlameRetired View Post
    An oversight at my end. The first formula has COUNTIFS. Excel 2003 does not have COUNTIFS. If you are not getting an error in Q2:Q5 I suspect you have newer version. If that is the case please update your profile ... members tailor solution with that in mind (usually ).

    Could you upload the file you are talking about ... with sensitive data fictionalized?
    Sorry, I'm all at sea today.....I use Excel 2007 (profile now updated, thanks for the suggestion!)

  16. #16
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Thank you for updating your profile.

    In this last upload I am confused.

    The Contractor/References G21:H25 do not agree with the source G7:H13.

    For example expected is
    EF
    2


    and the source is
    EF
    4
    KL
    7
    MN
    4
    EF
    4


    What am I missing?
    Last edited by FlameRetired; 09-12-2018 at 01:33 PM.

  17. #17
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Sox, my fault this time......hopefully, the attached new version will be better!
    Attached Files Attached Files

  18. #18
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    MN in H11 was 4. Changed in the attached to 8.

    There are two methods for returning the unique contractor initials. The first one uses a helper range near the source data. In F7:F13
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then the output range F21:F25 has this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    A non helper alternative is array entered in G21 and filled down.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The output for reference is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    for hours
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and for total cost
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  19. #19
    Registered User
    Join Date
    11-27-2013
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Multiple data entry leading to multiple worksheets....I'm baffled!!

    Hi thanks so much for your help. I'm afraid my brain hurts.....and I'm just not able to get my head around this. I thought it would be so simple!

    As a last push, I've attached an extract from the actual workbook I'm using and wondered if you would be able to help by putting the formulas you suggest into the yellow area?

    I know I'm asking a lot, but I am genuinely unable to get my head around what is needed here!

    As you'll see, Ive out some sample data in and hoipe it makes sense. Everything you've advised before works really well - thank you - and I've managed to get the results appearinng elsewhere in the workbook. It's just this one last thing....

    Thank you.
    Attached Files Attached Files

+ 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. Consolidating data from multiple worksheets into a summary sheet having multiple criteria
    By Marushka Pinto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2015, 11:11 PM
  2. Replies: 2
    Last Post: 06-17-2014, 11:16 AM
  3. Replies: 3
    Last Post: 01-05-2013, 02:20 AM
  4. Conditional format to check for entry presence in multiple worksheets
    By Bearded Dan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-02-2012, 04:47 PM
  5. Multiple charts over multiple sets of data over multiple worksheets.
    By matrocka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2007, 10:01 AM
  6. Populating Multiple Worksheets with one entry
    By Intuit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2006, 05:10 PM
  7. Replies: 2
    Last Post: 10-31-2005, 01:05 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