+ Reply to Thread
Results 1 to 5 of 5

Formua to match data

  1. #1
    Spammer
    Join Date
    08-20-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    221

    Formua to match data

    I have Inventory numbers in Sheet "Creditors" in Col F and the inventory numbers are on sheets SLP1, SLP2, SLP3 in Col C


    I would like to set up a formula in Sheet "Creditors" in Col AA2 onwards that where the Inventory number matches the inventory number on sheets SLP1, SLP2, SLP3, then the formula to return the sheet name for eg SLP1 , otherwise return "not found"

    Eg if inventory numbers in Col F to be matched to sheets SLP1, SLP2, SLP3 in Col C

    Inventory Number
    HA6HW3096
    W7AJ01082
    4Z2H01639
    4Z2H01674
    W7AJ01101
    W76J01103
    W7AH03049


    Your assistance is most appreciated

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Formua to match data

    Try

    in AA2

    =IFERROR(INDEX(Sheetlist,MATCH(1,--(COUNTIF(INDIRECT("'"&Sheetlist&"'!$C$1:$C$200"),$F2)>0),0)),"Not Found")

    Sheetlist is named range (SLP1, SLP2, SLP3)

  3. #3
    Spammer
    Join Date
    08-20-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    221

    Re: Formua to match data

    Thanks for the help John


    Is the named Range SLP1, SLP2, SLP3 set up on the source sheet "Creditors" ?

  4. #4
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Formua to match data

    Quote Originally Posted by flupsie View Post
    Thanks for the help John


    Is the named Range SLP1, SLP2, SLP3 set up on the source sheet "Creditors" ?
    you can put it this way if you want.

    =IFERROR(INDEX({"SLP1","SLP2","SLP3"},MATCH(1,--(COUNTIF(INDIRECT("'"&{"SLP1","SLP2","SLP3"}&"'!$C$1:$C$200"),$F2)>0),0)),"Not Found")

    credits to john

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Formua to match data

    Named range can be set up anywhere.

+ 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] simplyfing formua which uses offset and abs
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2017, 03:55 PM
  2. [SOLVED] Dynamic chart with formua derived data
    By BRISBANEBOB in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-09-2016, 12:55 PM
  3. [SOLVED] Index match - my formua is changing if the source range is modified
    By ids in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-28-2014, 09:53 AM
  4. Replies: 3
    Last Post: 01-06-2014, 01:22 PM
  5. SumIf Formua with two criteria
    By Gambinus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2011, 04:51 PM
  6. a formua to paste words in front of nos.
    By Ajitrv in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2007, 09:04 AM
  7. [SOLVED] need a formua for wages
    By pgc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-18-2005, 07:05 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