+ Reply to Thread
Results 1 to 4 of 4

Index/Match to only return numbers which are a certain length

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Index/Match to only return numbers which are a certain length

    Hi,

    I have the array formula:
    =IFERROR(INDEX('Balance Sheet New'!$C$7:$C$55,MATCH(1,--(COUNTIF($E$5:E5,'Balance Sheet New'!$C$7:$C$55)=0),)),"")

    Which shows unique entries from a list on the sheet "Balance Sheet"

    Is there any way I can in which I can restrict it further to only include numbers which are 6 charters in length only?

    e.g. the list:
    113000
    22.1
    22.2
    234200
    0
    210000

    Would become:
    113000
    234200
    210000

    Paul

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Index/Match to only return numbers which are a certain length

    In E6 Cell - Array Formula - Requires CTRL+SHIFT+ENTER


    =IFERROR(INDEX('Balance Sheet New'!$C$7:$C$55,MATCH(1,--(COUNTIF($E$5:E5,IF(LEN('Balance Sheet New'!$C$7:$C$55)>=6,'Balance Sheet New'!$C$7:$C$55,0))=0),0)),"")


    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Re: Index/Match to only return numbers which are a certain length

    Hi

    Thanks for replying

    I couldnt get it to work with the formula.

    I have uplaoded an example to show what its doing and what i require.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Index/Match to only return numbers which are a certain length

    Please check the attached file
    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. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  2. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  3. [SOLVED] Index Match with different data length and across multiple workbooks
    By Faridwahidi in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-22-2014, 09:03 AM
  4. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  5. Replies: 2
    Last Post: 10-23-2010, 04:54 PM

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