+ Reply to Thread
Results 1 to 8 of 8

Creating a forumla to pick values in a row, then multiplying by another figure

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    5

    Creating a forumla to pick values in a row, then multiplying by another figure

    Bit of a long one, and I really need help with this. I am sure there will be a way of doing it, but it's beyond me.

    I have a spreadsheet that I have numerous tabs in, for daily record on hours worked for both labourers, and machines, which is then is totalled at the bottom to give me a weekly cost. The problem comes when I need to allocate the daily costs to different cost codes.

    What I would like to do is to create a formula that picks up the hours in each row, calculates it with the appropriate cost, then adds in all together, so I get a “lump sum” daily figure cost for that day.

    I can provide an example sheet for anyone to see that may be able to help me, as trying to explain is rather hard!

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Creating a forumla to pick values in a row, then multiplying by another figure

    An example would be very helpful.

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Creating a forumla to pick values in a row, then multiplying by another figure

    We can certainly help you, but we do need the example sheet!
    Taming the Excel dragon... www.TheExcelphile.com

  4. #4
    Registered User
    Join Date
    10-03-2012
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating a forumla to pick values in a row, then multiplying by another figure

    example.xls

    Hopefully this will work...

  5. #5
    Registered User
    Join Date
    10-03-2012
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating a forumla to pick values in a row, then multiplying by another figure

    Anyone any ideas?

  6. #6
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Creating a forumla to pick values in a row, then multiplying by another figure

    I'm sorry, Wench, but your sample sheet is a little confusing. How do you assign the cost codes? Could you perhaps give us a result that you want, along with how you arrived at the result?

  7. #7
    Registered User
    Join Date
    10-03-2012
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating a forumla to pick values in a row, then multiplying by another figure

    I assign the cost codes manually. I have typed "yes" into the cost code cell that I want the formula to appear in.

    In the "real" version of the spreadsheet there are many more labourers, equipment and cost codes.

  8. #8
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Creating a forumla to pick values in a row, then multiplying by another figure

    I think a sumproduct formula should work for you.
    =SUMPRODUCT($B6:$H6,$B$11:$H$11)
    This formula, when inserted in I6 in your sample, will take all the hours for labour and equipment in that row (in this case, row 6), multiply with the corresponding rates in row 11, and give you the total cost.
    I hope this is what you were looking for.

    Don't forget to click the small star next to this post if you feel I helped.

+ 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