+ Reply to Thread
Results 1 to 7 of 7

Formula to lookup numerous columns and add the next number in sequence

Hybrid View

  1. #1
    Registered User
    Join Date
    04-01-2021
    Location
    Sydney Australia
    MS-Off Ver
    Office 16
    Posts
    3

    Post Formula to lookup numerous columns and add the next number in sequence

    Hi Brains Trust!
    I currently have a spreadsheet with the following columns
    A: Project Number
    B: Functional Code
    C: Document Type
    D: File Location
    E: Numerical Sequence

    I have data entered in Columns A to D and want to look up those columns to then give me the next three digit number in sequence based on the content in Columns A to D.

    Rows may have different information in Columns A to D.

    For instance, the following may be in Row 50
    A: B200123
    B: PM
    C: MIN
    D: 2.4
    E: ???

    Then in column F I have a concatenate function to string Columns A to E together to read - B200123-PM-MIN-2.4-??? - with the question marks being '001' for the first instance of the concatenate. The reason I need the formula in column E is that this string 'B200123-PM-MIN-2.4' could be in the spreadsheet 15 times. I need the first instance to read B200123-PM-MIN-2.4-001 then further instances to read B200123-PM-MIN-2.4-002, B200123-PM-MIN-2.4-003, B200123-PM-MIN-2.4-004, as so on.

    Thanks!!
    JT

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,649

    Re: Formula to lookup numerous columns and add the next number in sequence

    Try with COUNTIFS

    =$A1&"-"&$B1&"-"&$C1&"-"&$D1&"-"&TEXT(COUNTIFS($A$1:$A1,$A1,$B$1:$B1,$B1,$C$1:$C1,$C1,$D$1:$D1,$D1),"000")
    Attached Images Attached Images
    Quang PT

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Formula to lookup numerous columns and add the next number in sequence

    Remove the post.
    Last edited by Phuocam; 04-01-2021 at 11:16 PM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,649

    Re: Formula to lookup numerous columns and add the next number in sequence

    Self deleted.

  5. #5
    Registered User
    Join Date
    04-01-2021
    Location
    Sydney Australia
    MS-Off Ver
    Office 16
    Posts
    3

    Re: Formula to lookup numerous columns and add the next number in sequence

    Why did you delete?

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,649

    Re: Formula to lookup numerous columns and add the next number in sequence

    Quote Originally Posted by jenn_t View Post
    Why did you delete?
    Just an our personal conversation.

    BTW, does #2 work?

  7. #7
    Registered User
    Join Date
    04-01-2021
    Location
    Sydney Australia
    MS-Off Ver
    Office 16
    Posts
    3

    Re: Formula to lookup numerous columns and add the next number in sequence

    Yes thanks bebo021999!

+ 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. To generate a number sequence based on criteria from different columns
    By Snehith Moturi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-05-2020, 12:51 PM
  2. [SOLVED] SOLVED: Add sequence number to only some of the formula when copying
    By cptolsen in forum Excel General
    Replies: 4
    Last Post: 09-11-2019, 11:26 AM
  3. Number Sequence Wise in Two Columns
    By Navi_G in forum Excel General
    Replies: 7
    Last Post: 08-28-2019, 06:40 AM
  4. [SOLVED] Formula to get number based on sequence
    By rizmomin in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-17-2016, 07:29 AM
  5. Replies: 7
    Last Post: 06-08-2015, 08:39 AM
  6. Replies: 2
    Last Post: 05-19-2013, 03:59 AM
  7. [SOLVED] Excel formula for finding next number in a given sequence?
    By Rod in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2006, 07:20 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