+ Reply to Thread
Results 1 to 6 of 6

If Yes then only show these items in new table or named range

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    13

    Angry If Yes then only show these items in new table or named range

    I am trying to get excel to list only the parts actually used if the value in a cell = yes and that it also has a quantity of 1 or more in the other cell. If there is not Yes value or Quantity I don't want it to be shown in the actual parts being used for certain jobs. I've attached how I would like the spreadsheet to look, but I'm not sure exactly how to get it to work.

    PARTS.xlsx

    any help would be much appreciated.

    Thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: If Yes then only show these items in new table or named range

    I inserted a new column E and put this formula in E3:

    =IF(OR(C3="no",D3=0),"",MAX(E$2:E2)+1)

    This was copied down automatically.

    Then in G3 I used this formula:

    =IF(ROWS($1:1)>MAX(E:E),"",IFERROR(INDEX(B:B,MATCH(ROWS($1:1),E:E,0)),""))

    with this formula in H3:

    =IF(ROWS($1:1)>MAX(E:E),"",IFERROR(INDEX(D:D,MATCH(ROWS($1:1),E:E,0)),""))

    These two formulae can be copied down as far as you need them.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-04-2014
    Posts
    13

    Re: If Yes then only show these items in new table or named range

    Thank you so much!!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: If Yes then only show these items in new table or named range

    You're welcome.

    I see you have marked the thread as SOLVED - you might also like to click on the "star" icon at the bottom of my post to add to my reputation (this also applies to other posts that you find helpful - not only on this thread).

    Pete

  5. #5
    Registered User
    Join Date
    06-04-2014
    Posts
    13

    Re: If Yes then only show these items in new table or named range

    Sure thing Pete. Thanks again for all of your help.

  6. #6
    Registered User
    Join Date
    11-24-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    1

    Re: If Yes then only show these items in new table or named range

    Hello Pete,

    Can you please solve this in attached sheet by Russ.

    Tnx in advance

+ 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. Need to add items to a named range for a combobox
    By rbpd5015 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2014, 08:29 PM
  2. Array formulas referencing a named range or named table
    By anrichards22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2013, 11:59 PM
  3. [SOLVED] Counting how many items in a Named Range are equal to a value
    By Cheesehunk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2013, 02:24 PM
  4. Pivot items filtered by named range
    By cjwilkinson82 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2009, 05:39 AM
  5. 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