Forum Discussion

Rekha354's avatar
Rekha354
Copper Contributor
Oct 30, 2019

Excel Formula

need formula to find days took between 5 different dates from cell A with cell C, D,E and F also if any of the date closer to the date of A then calculate the days.

 

8 Replies

  • mathetes's avatar
    mathetes
    Gold Contributor
    From the brief description you give, it's hard to do anything elegant. But a simple formula like this will calculate the number of days between cell A2 and B2 through F2 (just copy the formula from B2 into those other cells)
    =ABS(Days(B2,$A$2))
    You can then find the minimum number by formula using =MIN(B3:F3)

    By the way, the ABS in that first formula just gives an absolute (always positive) number... so it is the number of days in either direction from A2...

    If you need more help, please post a more complete description, or perhaps a sample of the spreadsheet you're working on.
    • Rekha354's avatar
      Rekha354
      Copper Contributor
      I am looking for a complex calculation

      If A _ Conf. Delivery date
      B_ received at store
      C received by client
      D in transit by stores
      Now need to calculate days took to deliver.
      From A (if any of the B,C,D cell have value or if any of the cell is near to the date of A. Means Lowest date to be picked n calculate.
      • mathetes's avatar
        mathetes
        Gold Contributor

        Rekha354  Could you give some examples with data from real life, along with a description of the calculation you would do if you were doing it "manually"  --- it's clear that you know what you mean, but your description, frankly, is not as clear as a complete example would be. Preferably several examples, maybe with one of them being an "out-of-the-ordinary" situation.

         

        Words alone are just naming the variables, but not actually describing what you're asking to do with them, except that it's clear you want to know how to calculate numbers of days between various dates....but it's also clear that's not all that you want.

Resources