+ Reply to Thread
Results 1 to 10 of 10

Formula to show what items are being used on a range from a table list

  1. #1
    Registered User
    Join Date
    06-26-2018
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    60

    Formula to show what items are being used on a range from a table list

    I have a list of items and a range where I put those items. I use this two formulas =IF(M23="","",COUNTIF($E$8:$J$29,M23)) on one column and =IFERROR(INDEX(M:M,AGGREGATE(15,6,ROW($M$23:$M$120)/($P$22:$P$120=0),ROWS($O$22:O22))),"") on the other one. Those formulas show me what items is left unused from the main data list. So I have one column that shows unused items and what I need is a formula which could show me what is used on my range. What formula could show me this?
    Last edited by zaibuojantis; 02-15-2019 at 08:03 AM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to show what items are being used on a range from a table list

    You already have that information in the range where it is used so why duplicate it?

    If needed, just duplicate it with =IF(A1="","",A1)

    Change A1 to match the first cell of your actual range then drag as needed.

  3. #3
    Registered User
    Join Date
    06-26-2018
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    60

    Re: Formula to show what items are being used on a range from a table list

    Yea but that formula only shows the number values of how many items is used, and what I need is column that shows item actual names which are being used.

  4. #4
    Registered User
    Join Date
    06-26-2018
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    60

    Re: Formula to show what items are being used on a range from a table list

    Quote Originally Posted by jason.b75 View Post
    You already have that information in the range where it is used so why duplicate it?

    If needed, just duplicate it with =IF(A1="","",A1)

    Change A1 to match the first cell of your actual range then drag as needed.
    I get value error with this formula when I select range such as E8:J16, I need it to go down and to the side.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to show what items are being used on a range from a table list

    Could you attach a sample workbook please (not a screen capture). Remembering to include a mock up up the expected results.

    edit:-

    The error is because that formula is not meant to take a range, only a single cell.

  6. #6
    Registered User
    Join Date
    06-26-2018
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    60

    Re: Formula to show what items are being used on a range from a table list

    Im attaching the file, I coloured the ranges from where it needs to take the values and a column " being used" where it should appear.
    Attached Files Attached Files
    Last edited by zaibuojantis; 02-15-2019 at 07:43 AM.

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to show what items are being used on a range from a table list

    See if this does as expected.

    =IFERROR(INDEX(M:M,AGGREGATE(15,6,ROW($M$23:$M$120)/($P$22:$P$120>0),ROWS($O$22:O22))),"")

    I noticed that the count formulas in column P are only looking at the first 2 green tables, not all 5 of them, so that will need adjusting if it is not correct.

  8. #8
    Registered User
    Join Date
    06-26-2018
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    60

    Re: Formula to show what items are being used on a range from a table list

    It works great! Just what I needed, thank you. One last question, if I accidentally use the same item name twice or more times and it gets duplicated, can I use some kind of formula which would show me only the duplicated names in another column?

  9. #9
    Registered User
    Join Date
    06-26-2018
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    60

    Re: Formula to show what items are being used on a range from a table list

    Never mind, I found it myself. Thanks for your help!

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to show what items are being used on a range from a table list

    If you change the definition of the named range, mzones from

    =Sheet1!$M$23:$M$94

    to the formula,

    =Sheet1!$O$21:INDEX(Sheet1!$O$21:$O$104,COUNTIF(Sheet1!$O$21:$O$104,"?*"))

    Then the data validation list will only show unused names, preventing you from using the same name twice.

+ 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] Adding Items to List box from cell range but skipping items duplicated in another range
    By alteredbeast in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2017, 04:16 AM
  2. [SOLVED] Show all items from table grouped by name
    By Tr33 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-04-2017, 06:15 AM
  3. Replies: 1
    Last Post: 07-16-2015, 05:46 AM
  4. [SOLVED] If Yes then only show these items in new table or named range
    By RussB in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2015, 10:27 PM
  5. Replies: 1
    Last Post: 09-03-2012, 10:03 PM
  6. [SOLVED] Show all Pivot Table items
    By joebanana in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2012, 11:27 AM
  7. Replies: 1
    Last Post: 06-24-2005, 12:21 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