+ Reply to Thread
Results 1 to 20 of 20

how to add a weekly cost using dated in two column

  1. #1
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    how to add a weekly cost using dated in two column

    can you help please, i need the weekly cost(A) from the date in (B) + (C) to go into Dexcel question.JPG

  2. #2
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    Welcome to the forum!

    You have not given enough information for anyone to understand what you are trying to do. What is the expected result?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: how to add a weekly cost using dated in two column

    the weekly cost is in column A, column B is the start date and column C is the end date (which will change on a daily basis) so I need to calculate how much it will have cost (between the two dates(which could be multiple weeks)):confused

  4. #4
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    So what is the result you are expecting in D? Is it C minus B divided by 7 and multiplied by A? If so, try this:

    =A2*((C2-B2)/7)

  5. #5
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: how to add a weekly cost using dated in two column

    sorry that doesnt seem to workAttachment 619317

    the cost in the end column should be £10 as it is only one week?

  6. #6
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    You have not copied the formula correctly. The parenthesis is crucial:

    =A1*((C1-B1)/7)

  7. #7
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: how to add a weekly cost using dated in two column

    excel auto corrected it, as attachedAttachment 619321

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    Attach the workbook. I cannot troubleshoot an image. It works as expected here, so you are doing something wrong.

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: how to add a weekly cost using dated in two column

    your file not open. Kindly re-attach


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  10. #10
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    There is no file attached (yet) - only an image (which does open).

  11. #11
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: how to add a weekly cost using dated in two column

    I have no way of attaching the workbook, there is no attach icon.

    The image that I sent was from Microsoft Excel saying that it had found an error in the formula that had been entered ND THAT IT SHOULD BE =A1*((C1-B1/7))!!!!

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    Yes, you can attach the workbook - please do so now.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Excel does not try to correct my formula when I copy and paste it as I typed it in the posts above, therefore you must be copying it incorrectly.

    ND THAT IT SHOULD BE =A1*((C1-B1/7))!!!!
    There is no need to SHOUT.
    Last edited by AliGW; 04-09-2019 at 09:29 AM.

  13. #13
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: how to add a weekly cost using dated in two column

    ok, lets hope this works
    Attached Files Attached Files

  14. #14
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    Thank you. As I have said, the formula has been entered incorrectly. Here's your workbook with it entered correctly:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    £10.00
    02/04/2019
    09/04/2019
    £10.00
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    D
    1
    =A1*((C1-B1)/7)
    Sheet: Sheet1

  15. #15
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    Please see the file attached with the formula above in place.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: how to add a weekly cost using dated in two column

    thank you sooooooooooooo much

  17. #17
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    You're welcome. In future, please ensure that you copy and paste formulae you are offered - typing them yourself can lead to errors.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  18. #18
    Registered User
    Join Date
    04-09-2019
    Location
    MANCHESTER
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: how to add a weekly cost using dated in two column

    Sorry, when I add the correct formula in to the spreadsheet that I am working on, it works fine where I have end dates but where I have no dates in yet it is giving me a minus number......is this right
    Attached Files Attached Files

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    Yes, because you asked for a formula that worked with end dates!

    Try this instead:

    =IF(F4="","",B4*((F4-D4)/7))

  20. #20
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: how to add a weekly cost using dated in two column

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Weekly cost of sale array formula
    By BWellman in forum Excel General
    Replies: 0
    Last Post: 09-27-2016, 09:48 AM
  2. Replies: 6
    Last Post: 07-06-2013, 10:02 PM
  3. Consolidated Monthly view of weekly cost and labour
    By audiman09 in forum Excel General
    Replies: 3
    Last Post: 02-05-2013, 12:29 AM
  4. Open multiple dated text files and import dated data specified in file name
    By andygxxxv in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2013, 03:56 PM
  5. [SOLVED] creating consecutive dated (weekly) work sheets within a workbook
    By bite_tony in forum Excel General
    Replies: 4
    Last Post: 04-18-2012, 07:09 AM
  6. Creating a dated column for 1 year
    By robV326 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-08-2008, 09:56 PM
  7. daily and weekly cost sum
    By corper in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2007, 04:35 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