+ Reply to Thread
Results 1 to 29 of 29

Formula to work out costings - PLS HELP

  1. #1
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Formula to work out costings - PLS HELP

    Hi guys,

    as you can see in the attached spread sheet the sales price is there..

    I need to be able to work this out myself.. It needs to total up to the same as the sales price in green.

    The buying cost is in the next tab

    Can anyone help? :-(

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    cany anyone help?
    Quote Originally Posted by m_789 View Post
    Hi guys,

    as you can see in the attached spread sheet the sales price is there..

    I need to be able to work this out myself.. It needs to total up to the same as the sales price in green.

    The buying cost is in the next tab

    Can anyone help? :-(

    Thank you

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Formula to work out costings - PLS HELP

    Could you give us some examples the results you're looking for and how you arrive at those results?

  4. #4
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    an example of the results im looking for is in the green column - Column E..... They would work out the cost by seeing what the cost for the specific charging code is which is in the charging codes tab and then times it by the duration of the call in column C in the CDRS Tab
    Quote Originally Posted by BadlySpelledBuoy View Post
    Could you give us some examples the results you're looking for and how you arrive at those results?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    What would you expect the answer in H2 to be?

  6. #6
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    0.0024 is what i would expect - it would be the same as e2
    Quote Originally Posted by AliGW View Post
    What would you expect the answer in H2 to be?

  7. #7
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    0.0024 is what i would expect - it would be the same as e2

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    So anything less than 60 seconds will cost the same as one minute - 61 to 120 seconds will cost the same as two minutes, and so on?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    Try this in H2 and copy down: =(HOUR(C2)*60 + MINUTE(C2) + IF(SECOND(C2)>0,1,0))*E2
    Last edited by AliGW; 02-17-2014 at 10:26 AM.

  10. #10
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    seems to have worked for some but not all?
    trying to get H2 to total to exactly what e2 totals too :-(
    ive attached the sheet to show u
    Quote Originally Posted by AliGW View Post
    Try this in H2 and copy down: =(HOUR(C2)*60 + MINUTE(C2) + IF(SECOND(C2)>0,1,0))*E2
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    anything above a minute is not working out right

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    I don't understand. They are the same. Make sure column H is formatted as general.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    How do you want it to work out? Are you saying that up to a minute costs a minute, but anything after that is worked out in fractions? It would have been helpful had you answered my earlier question about this!

  14. #14
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    it is as general? strange ye? what ive noticed though is everything that the call is over a minute it dont match up the amount in column e & column H

    ive attached the image

    Quote Originally Posted by AliGW View Post
    I don't understand. They are the same. Make sure column H is formatted as general.
    Attached Images Attached Images

  15. #15
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    i believe its all worked out in fractions?
    Im sorry to be a pain i have no idea how its been worked out previously. Tahts what im trying to figure out

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    Now I am completely confused! C3 = 2 min 34 sec - this rounds up to 3 mins. E3 is 0.0129 (price per minute) and 3 x 0.0129 = 0.0387. What do you expect it to be?

  17. #17
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    totally lost by it mate im sorry, just want to find the quickest way to do it instead of one by one
    Quote Originally Posted by AliGW View Post
    How do you want it to work out? Are you saying that up to a minute costs a minute, but anything after that is worked out in fractions? It would have been helpful had you answered my earlier question about this!

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    So, anything UNDER a minute costs the same as one full minute (60 seconds), but anything OVER a minute is costed out exactly - is this correct?

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    Try this: =(HOUR(C2)*60+MINUTE(C2)+IF((HOUR(C2)+MINUTE(C2)=0),1,SECOND(C2)/60))*E2 and copy down. Format the column as number with four decimal places.
    Attached Files Attached Files
    Last edited by AliGW; 02-17-2014 at 11:18 AM.

  20. #20
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    I have no idea whats going on here mate. Can you paste it in the spreadsheet and upload it here?
    I will see it there
    god knows where im going wrong
    Quote Originally Posted by AliGW View Post
    Try this: =(HOUR(C2)*60+MINUTE(C2)+IF((HOUR(C2)+MINUTE(C2)=0),1,SECOND(C2)/60))*E2 and copy down. Format the column as number with four decimal places.

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    I have already posted the spreadsheet (see my last post). I am a lady, by the way. ;-)

    The formula is doing this, basically: if the duration of the call is less than a minute, then the total charge calculated is for a minute. However, any duration over a minute calculates the total cost using minutes AND seconds. I hope that this is what you want, but I'm not entirely sure that YOU know what you want!!! LOL!

  22. #22
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    but why dont they match up then?

    the sales price is different to what we are working it out to be on some of them? why is this?

    our work out should be the same as the sales price in green :S

    Quote Originally Posted by AliGW View Post
    I have already posted the spreadsheet (see my last post). I am a lady, by the way. ;-)

    The formula is doing this, basically: if the duration of the call is less than a minute, then the total charge calculated is for a minute. However, any duration over a minute calculates the total cost using minutes AND seconds. I hope that this is what you want, but I'm not entirely sure that YOU know what you want!!! LOL!

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    I'm sorry, I really don't know what it is you are trying to do. Is the green column the price per minute? If not, then where does it come from and what is it? And if not, where is the price per minute that we should be using in the formula? Are you actually wanting to do calculations based on figures on the other tab in the workbook?

  24. #24
    Forum Contributor
    Join Date
    12-09-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    171

    Re: Formula to work out costings - PLS HELP

    Hi,

    Try the following one...

    =(HOUR(C2)*60 + MINUTE(C2) + (SECOND(C2)/60))*E2

    Thanks

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Formula to work out costings - PLS HELP

    Quote Originally Posted by satabp View Post
    =(HOUR(C2)*60 + MINUTE(C2) + (SECOND(C2)/60))*E2
    This will not work if the answer in H2 is to be the same as the number in E2, which was discussed further up.

  26. #26
    Forum Contributor
    Join Date
    12-09-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    171

    Re: Formula to work out costings - PLS HELP

    I hope this will work...

    =(HOUR(C3)*60 + MINUTE(C3) + IF((HOUR(C3)+MINUTE(C3))>0,(SECOND(C3)/60),1))*E3

    Thanks,

  27. #27
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Formula to work out costings - PLS HELP

    I don't see what your problem is. The Sale Price in column E is a sale price per minute. Column E and Column H will only be the same when the time is less than a minute. The charges as laid out by your costing is that anything over the minute is charged to the next higher minute. If are only charging for 1 minute for the fist minute or part thereof and by the second thereafter then that is different.

    This formula, that you already are using in your last worksheet is working correctly for charges by the minute:

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


    This works equally well producing the same results:

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


    I have in the attached file, calculated the duration in seconds and the cost per second.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  28. #28
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Formula to work out costings - PLS HELP

    okay guys i need to apologise

    Fully understood what your saying

    This is my fault for not explaining it right!!!!! KILL ME

    So basically...

    Column G is the relevant charing code for that call.. We will need to find out what the relevant charging code for that call is by matching it up from the "BUYNG COST" TAB and then times that by the duration back in the CDRS tab (CELL C)
    Quote Originally Posted by newdoverman View Post
    I don't see what your problem is. The Sale Price in column E is a sale price per minute. Column E and Column H will only be the same when the time is less than a minute. The charges as laid out by your costing is that anything over the minute is charged to the next higher minute. If are only charging for 1 minute for the fist minute or part thereof and by the second thereafter then that is different.

    This formula, that you already are using in your last worksheet is working correctly for charges by the minute:

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


    This works equally well producing the same results:

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


    I have in the attached file, calculated the duration in seconds and the cost per second.

  29. #29
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Formula to work out costings - PLS HELP

    Here are the costs using the table and not the Sale Price. There are calculations for the first minute and charge by the minute and also calculations for the first minute and charge by the second for time exceeding a minute.
    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. Menu costings sheet with access?
    By garyi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2013, 05:51 AM
  2. [SOLVED] Use Lookup formula to calculate total costings
    By Help_Required in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2013, 05:25 AM
  3. Replies: 1
    Last Post: 04-19-2013, 07:21 AM
  4. Converitng Numbers into times for costings issue
    By Scott Pattison in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2008, 05:06 PM
  5. Replies: 0
    Last Post: 06-24-2005, 06:05 AM

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