+ Reply to Thread
Results 1 to 3 of 3

Create an index keeping original index reference and appending new where necessary

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Create an index keeping original index reference and appending new where necessary

    I am trying to index a series of arrays in which some products have index numbers and some not. Where index numbers exist, I need to keep these and just give the unindexed products the next reference number. The attached workbook has some examples which might explain it a bit better.

    Grateful any help - I suspect it is an array-type solution and I am trying to avoid VBA.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Create an index keeping original index reference and appending new where necessary

    Do your Indexing dumps ever start with 3 or always with a 1 or 2 ?
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Create an index keeping original index reference and appending new where necessary

    Array-enter in D8; fill to D10

    =IF(C8,C8,SMALL(IF(ISNA(MATCH(ROW($1:$3),$C$8:$C$10,0)),ROW($1:$3)),COUNTIF($C$8:C8,"")))

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter. (CSE)


    D14 to D16

    =IF(C14,C14,SMALL(IF(ISNA(MATCH(ROW($1:$3),$C$14:$C$16,0)),ROW($1:$3)),COUNTIF($C$14:C14,"")))



    D20 to D22

    =IF(C20,C20,SMALL(IF(ISNA(MATCH(ROW($1:$3),$C$20:$C$22,0)),ROW($1:$3)),COUNTIF($C$20:C20,"")))


    Row\Col
    A
    B
    C
    D
    E
    5
    Data Dump
    6
    7
    Example 1
    Index
    This one
    Final
    8
    Prod A
    2
    2
    2
    9
    Prod B
    1
    1
    1
    10
    Prod C
    3
    3
    11
    12
    13
    Example 2
    Index
    Final
    14
    Prod G
    2
    2
    2
    15
    Prod B
    1
    1
    16
    Prod A
    3
    3
    17
    18
    19
    Example 3
    Index
    Final
    20
    Prod B
    1
    1
    1
    21
    Prod K
    2
    2
    2
    22
    Prod D
    3
    3

+ 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. [SOLVED] Index un-indexed items keeping original index numbers where they exist
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-25-2016, 03:55 AM
  2. Replies: 0
    Last Post: 08-07-2015, 08:44 PM
  3. Replies: 9
    Last Post: 04-12-2015, 07:20 PM
  4. [SOLVED] Copying Formulas Between Worksheets While Keeping Reference to Original Worksheet
    By PandaBear2014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2014, 06:32 PM
  5. [SOLVED] Copy formulas from one spreadsheet to another keeping the original sheet cell reference
    By Sheepdog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2012, 02:41 PM
  6. Replies: 5
    Last Post: 04-18-2010, 11:06 AM
  7. INDEX:INDEX as range reference
    By sweep in forum Excel General
    Replies: 6
    Last Post: 04-01-2010, 04:47 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