+ Reply to Thread
Results 1 to 3 of 3

vlookup on date and then add

  1. #1
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    vlookup on date and then add

    In column 1, I have customers 1,2,3,4,5,6,7.....etc. There is an associated date in column 2.
    In column 3 (customer code) and 4, each of these customers has multiple invoices. So Customer 1, might have 4 invoices. So in column 2 it would 1,1,1,1 and column 3 would be 1,2,3,4 for invoices.

    I did a vlookup for date, but for each successive date after the first (RELATED to each unique customer) I would like random interval increases. How can I do this? Spreadsheet attached.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-19-2014
    Location
    DeKalb, IL
    MS-Off Ver
    2013
    Posts
    31

    Re: vlookup on date and then add

    I'm guessing you have a column with all of your customers (several entries of the same customer) with a column of dates next to it, but there's only one date present for each customer leaving blank spaces next to the duplicate customer numbers for dates. If that's the case, highlight the date column, go to Find & Select -> Go to Special -> Blanks, and enter the following:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Where A1 is the first date entry that you have (first date, customer #1). This will essentially keep adding a random number between 1 and 100 (you can change these numbers if you like) to the above date until it gets to another manually entered date, at which point the cycle starts over. I think this gets at your question?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: vlookup on date and then add

    I can replicate the desired results you requested in the sample workbook using the following formula, pasted in Cell G6 and dragged down to fill.

    =IF(COUNTIF($E$6:E6,E6)>1,F5+RANDBETWEEN(1,60),VLOOKUP(E6,$A$6:$B$9,2)) -- where the random interval is between 1 and 60

    Beware! Using the RANDBETWEEN formula to create the "random" intervals (as you requested) creates volatile formulas that will change every time the workbook recalculates.
    Attached Files Attached Files

+ 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. need to vlookup a date and Need to sum a column based on a date
    By Rossovich in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-10-2015, 02:01 PM
  2. Replies: 0
    Last Post: 11-16-2015, 08:57 AM
  3. [SOLVED] Converting Date Text to Number format to use in a VLOOKUP to polpulate data based by date
    By Rossovich in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-08-2015, 10:43 AM
  4. VLOOKUP: Date vs. Date Issue
    By civitarl in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-31-2015, 07:16 PM
  5. Replies: 2
    Last Post: 12-21-2013, 07:44 PM
  6. Replies: 4
    Last Post: 07-13-2011, 05:43 PM
  7. Replies: 1
    Last Post: 12-13-2010, 08:07 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