+ Reply to Thread
Results 1 to 18 of 18

calculating # of days from install to remove by address

  1. #1
    Registered User
    Join Date
    06-01-2015
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    10

    calculating # of days from install to remove by address

    I'm a newbie to this group thanks for the awesome knowledgebase!

    My question is what is preferred conditional formula to determine number of days from "add" to "remove" (in SERVICE TYPE column) based on ORDER # (ORDER # is same as SERVICE ADDRESS fyi).

    Would you recommend using = DATEDIF and if so, how would the conditional part of the formula be written? I am struggling to figure out an elegant way (& scale-able!) to do this

    sample data.jpg
    Last edited by denverdriveby; 06-02-2015 at 05:13 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating 3 of days from install to remove by address

    C22

    =if(countif($B$22:$B22,$B22)=1,"add","remove")

    and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: calculating 3 of days from install to remove by address

    If your data is always in this order, then you can use this:
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  4. #4
    Registered User
    Join Date
    06-01-2015
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    10

    Re: calculating # of days from install to remove by address

    thank you oeldere

    I am confused though as your formula output gave answer of "add" and "remove" when formula was dragged downward ...I am seeking to determine the # of days between SERVICE TYPE where the ORDER # is exactly the same. I am thoroughly STUMPED on how to write the conditional aspects of a workable formula on this one (I have a bad case of newbie-itis!)
    Last edited by denverdriveby; 06-02-2015 at 05:13 PM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating 3 of days from install to remove by address

    Then you are Lucky,

    you get the formula for column C in #2

    you get the formula for column E in #3 (nigelbloomy)

  6. #6
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: calculating 3 of days from install to remove by address

    This will find the difference no matter where the customers are located.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-01-2015
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    10

    Re: calculating # of days from install to remove by address

    and no sir (@nigelbloomy), the data is always in a different order but the ORDER# is always the same per property address. See below for different data set:

    sample data2.jpg

    I am assuming the answer is a formula that uses a combination =DATEDIF and IF formulas Or is there a better easier way?
    Last edited by denverdriveby; 06-02-2015 at 05:14 PM.

  8. #8
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: calculating 3 of days from install to remove by address

    If you always have the add line for a customer directly above the remove line for that same customer (like you have above), then my first formula will work to find the difference in days.

    If you have times where the add and remove lines are not one on top of the other, then my second formula will find the difference.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating 3 of days from install to remove by address

    @denverdriveby

    It is always good to show the real data (from the beginning) , so forummembers can give the correct answers.

    The answer in #3 fits your posted needs.

    Option: you could sort the data.
    Last edited by oeldere; 06-02-2015 at 05:06 PM. Reason: Option

  10. #10
    Registered User
    Join Date
    06-01-2015
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    10

    Re: calculating # of days from install to remove by address

    @nigelbloomy & @oeldere : thank you both, your insight & formula solved my question. I am studying the syntax now to better understand the math & conditional statements and also to scale-up the formula to my entire dataset. Thank you both sincerely, I hope I can repay the favor someday. Solution added to dataset and shown below:

    sample date 3.jpg

    dutch
    Last edited by denverdriveby; 06-02-2015 at 05:14 PM.

  11. #11
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: calculating 3 of days from install to remove by address

    Glad it's working for you.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating 3 of days from install to remove by address

    Glad I could help. If the question is solved, will you mark it solved?

    You can add (rep)utationpoints to the one who helped you, by clicking on the star on the left side.

  13. #13
    Registered User
    Join Date
    06-01-2015
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    10

    Re: calculating # of days from install to remove by address

    for other people's benefit: I have posted the correct formula into the spreadsheet and show below how it appears. The output data shows whole days listed with 2 decimal places. Thank you again each of you for your patience and expertise. Much obliged!

    sample date 3.jpg
    Last edited by denverdriveby; 06-02-2015 at 05:19 PM. Reason: corrected "3" in subject line to "#"

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating # of days from install to remove by address

    I get the follow faillure, when I try to open the attachement 398790

    Invalid Attachment specified. If you followed a valid link, please notify the administrator.

  15. #15
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,600

    Re: calculating # of days from install to remove by address

    There's a problem with the attachment. Please retry.
    To attach a Workbook
    (please do not post pictures or links to worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  16. #16
    Registered User
    Join Date
    06-01-2015
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    10

    Re: calculating # of days from install to remove by address

    well shoot, I don't know why the images show at the top but not below perhaps it's because I'm a new user and don't have certain permissions?? I am happy to email either of you a screenshot showing how your solutions answered my question. <email removed per forum user's advice >
    Last edited by denverdriveby; 06-02-2015 at 05:29 PM.

  17. #17
    Registered User
    Join Date
    06-01-2015
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    10

    Re: calculating # of days from install to remove by address

    thank you for the formulas and explanation. For everyone's benefit, here is the final screenshot showing the formula and it's data-output. Thank you!!

    sample date 3.jpg

  18. #18
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating # of days from install to remove by address

    I advice you to remove the e-mail adres.

    It can be used for spam.

+ 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. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  2. Replies: 2
    Last Post: 02-20-2014, 06:40 AM
  3. Calculating time elapsed in days and count days within same range
    By michellem410 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2008, 01:13 PM
  4. Replies: 6
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 12:05 AM

Tags for this Thread

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