Results 1 to 11 of 11

Generate alphanumeric code based on date in cell

Threaded View

  1. #1
    Registered User
    Join Date
    10-21-2016
    Location
    Belgium
    MS-Off Ver
    2016
    Posts
    9

    Unhappy Generate alphanumeric code based on date in cell

    Hi all,

    I have been working on a way to figure out if a request (one row) is approved, an alphanumeric code is generated based on the date that request was approved.

    It should look like this "CR" + "YEARDATE-1" (so if I approve my first request in april 2017) the number generated should look like this CR201704-1. The last digit should be determined based on the already approved requests.

    No I am stuck because the date is lined to the system date and the last digit is lined to the row, but this gives a false image since row 17 mag give "17" in the end whereas I only approved three requests you see.

    This is the code I am using now:

    =IF($R15="","",IF($R15="Rejected","",IF($R15="Approved","CR"&YEAR(TODAY())&TEXT(MONTH(TODAY()),"00")&"-"&TEXT(ROW()-1,"0000")-13)))

    First row of the data is "15".

    Thank you all for your help on this one! It's really appreciated.

    Kind regards,

    Bram
    Attached Files Attached Files
    Last edited by Iuscogens; 05-05-2017 at 12:46 PM. Reason: Attachment

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need macro to generate a list of alphanumeric chars
    By MagPower in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2016, 12:43 PM
  2. Replies: 0
    Last Post: 01-30-2016, 11:49 AM
  3. [SOLVED] Generate Dates by Month along columns based on Start Date and End Date
    By Stndsh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2015, 05:32 AM
  4. Generate random Alphanumeric with two letters and three numbers
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2015, 09:19 PM
  5. [SOLVED] Creating a formula to generate an alphanumeric code
    By JuauM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2015, 05:17 AM
  6. [SOLVED] Lookup Last Value then Generate Next Alphanumeric Value
    By jeversf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2014, 10:35 PM
  7. [SOLVED] Formula to Derive Date from Alphanumeric Code
    By gmarie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2013, 09:50 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