+ Reply to Thread
Results 1 to 15 of 15

How to arrange two date difference in Datewise / Monthwise format in Different Cells

  1. #1
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    How to arrange two date difference in Datewise / Monthwise format in Different Cells

    How to arrange two date difference in Datewise / Monthwise format in Different Cells And return periodic date matching data


    I am attaching Excel Workbook for reference and Comments so You can understand my point of view properly.
    Attached Files Attached Files
    Last edited by KRIXXXX; 06-26-2022 at 10:03 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    I do not understand your logic... but:

    =IFERROR(B8-A8+IF(A9="NA",0,1),"")

    in C8, copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234
    Quote Originally Posted by Glenn Kennedy View Post
    I do not understand your logic... but:

    =IFERROR(B8-A8+IF(A9="NA",0,1),"")

    in C8, copied down.
    It's my mistake, after writing comments in worksheet, I deleted several rows, so it may be creating confusion, I have re uploaded new file.

    Kindly first Read comments of Cell H1, H2 and H3. Then Cell D11 and after that Cell K7.

    I think after that you can get what kind of output I Want.
    Last edited by KRIXXXX; 06-26-2022 at 10:08 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    Try this. Differne shading = different formula. I'm not sure about column F, as you didn't explain it fully. However, your instructions to read the bits in a specified order helped enormously... thanks!!
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234
    Quote Originally Posted by Glenn Kennedy View Post
    Try this. Differne shading = different formula. I'm not sure about column F, as you didn't explain it fully. However, your instructions to read the bits in a specified order helped enormously... thanks!!
    Thank You, It works Very well.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  7. #7
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    I have already done both.

  8. #8
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    Previously you have provided the solution of above query, and this query is relates to this thread because its part contains your solution formulas, so I haven’t created new thread. But It’s more complex and very tricky.

    I expect the results as shown in attached excel sheets Column AH (Cells AH3 to AH13)
    Without doing calculations shown in Columns BE to DW

    I mean if is there any way to combine all this Columns (Columns BE to DW) calculations in Column AH (Cells AH3 to AH13) only.
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    OMG!! You are expecting a lot.

    One Q for now...

    The date ranges are quite short. Some date ranges (columns D & E) straddle 2 price zones... For example this period: 29/09/2021 06/10/2021 covers two... 1.9 & 2.0. What is the MAXIMUM number of price zones that you expect the date ranges to cover? The time periods look like weeks... so I guess 2 is the likely maximum? yes?? No??

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    Problem!! I do not think that your expected results are correct.

    I am focussing ONLY on row 7 to try to understand this. I chose row 7 because it straddles a price rise.

    Look at the PURPLE cells. They are calculating the price for row 7 (I think) and it's differnet from your rather long-winded way. Can you doubke (treble) check and let me know if my sums are correct or not!!
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    The time periods look like weeks... so I guess 2 is the likely maximum? yes?? No??

    It's in months, normally It's between 1 to 3 months, but is rare cases it can be upto 180 to 200 days also.

    And in Cell BW18 it should be D7-D6

    Dates in Column E are actually Due Dates.

    Calculations are I have double checked.
    Last edited by KRIXXXX; 07-24-2022 at 02:38 PM.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    Quote Originally Posted by KRIXXXX View Post
    And in Cell BW18 it should be D7-D6.
    No. Surely it's 2 days @ 1.90 and 5 @ 2.00 It's absolutely not 33 days !!!

  13. #13
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    It was my mistake that I haven't cleared Column E, I extremely sorry for that. It created confusion.
    Attached Files Attached Files
    Last edited by KRIXXXX; 07-25-2022 at 12:25 AM.

  14. #14
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    Quote Originally Posted by Glenn Kennedy View Post
    No. Surely it's 2 days @ 1.90 and 5 @ 2.00 It's absolutely not 33 days !!!
    Sir,
    Have you looked in to the issue

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to arrange two date difference in Datewise / Monthwise format in Different Cells

    I got stuck. I will look again tomorrow.

+ 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] How to arrange datewise data of more than one person when data receive from different date
    By dibyendu2280 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-17-2019, 08:06 AM
  2. Replies: 6
    Last Post: 12-08-2018, 09:26 PM
  3. [SOLVED] Re-arrange date format in Excel, please help as soon as possible !
    By calciumkid in forum Excel General
    Replies: 3
    Last Post: 07-06-2016, 05:19 AM
  4. [SOLVED] Rearranging Datewise horizontally in a specified format from Raw data
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 10-26-2013, 03:28 AM
  5. Monthwise summary on sheet2 from datewise transactions on sheet1
    By pulvi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-24-2013, 12:20 AM
  6. VBA to format cells based on difference from todays date
    By Cantdoexcel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2012, 04:27 AM
  7. Date Duration and Output datewise
    By exlove in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2012, 06:47 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