+ Reply to Thread
Results 1 to 5 of 5

IF Formula not giving me what I need

  1. #1
    Registered User
    Join Date
    03-23-2011
    Location
    loannides typre
    MS-Off Ver
    Excel 2003
    Posts
    4

    Angry IF Formula not giving me what I need

    Hi:
    This is the first time I've posted in here because I thought I knew everything (LOL)..apparently, I don't! I hope I can explain the issue I am having without confusing you all too much.. Here we go

    In my report I have sort on to sort by account number:
    Column D: Customer Account Number
    Column E: Work Completion Date

    I need to find out how many times the account number in Column D appears within 30 days of the first date it appears.

    So the formulas I have so far are:
    Column F: =E2 (giving me the date in number form)
    Column G: =IF((D2=D1),IF(((F2-F1)<31),(F2-F1),"NA"),"FIRST") **This is supposed to tell me if the account comes up "FIRST", hence the reason I have the report sorted by account #.
    Column H: =IF(G2="FIRST",1,IF(G2="NA",1,H1+1)). **This column gives me the amount of times the account appears less based on the formula in Column G.

    Now the issue I am having is that if an account shows up on Sept 1st, Sept 3rd, Sept 20th and October 5th. I want a column to tell me that I visited this account 3 times within 30 days of Sept 1st. But I need it also to tell me that in October, we were there 2 times within 30 days because we were there on Sept 20th and October 5th. I basically need it to record the amount of times we were out to each account within 30 days of the first visit, (which is what I currently have working), however I need the counter to start over each time we exceed a 30 day mark and start another..

    PS - I'm having trouble uploading the file for an example

    I'm sure I've confused some of the best on here and I apologize. I don't even know if what I'm asking for is even possible??!! Please help if you can..I'll answer any questions you may have!
    Last edited by cable1208; 01-23-2012 at 04:12 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Can this even be done?? Need help with a very confusing IF formula.

    Hi Cable 1208,

    Welcome to the forum.
    You have explained in detail but a sample file will definitely add into it, please upload. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Can this even be done?? Need help with a very confusing IF formula.

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    03-23-2011
    Location
    loannides typre
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Can this even be done?? Need help with a very confusing IF formula.

    I tried uploading, it won't go...I took out half the info to decrease the size of the file and it still won't go..SORRY!

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: IF Formula not giving me what I need

    Hi Cable,

    Firstly, would request you to work on the suggestion provided by NBVC.
    After this, would suggest you to delete the extra sheet tabs from your workbook, if any and post just the one sheet tab with relevant sample data in it. Also try zipping it before uploading.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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