+ Reply to Thread
Results 1 to 4 of 4

Force INDEX SMALL ROW Array to Show Zero/Blank Rather Than 'Skipping' Result

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    Lincoln, UK
    MS-Off Ver
    2013
    Posts
    37

    Force INDEX SMALL ROW Array to Show Zero/Blank Rather Than 'Skipping' Result

    Hi!

    I was wondering if someone could help me with this?

    I need to build in a further 'IF' exception to an INDEX, SMALL, ROW, ROW, ROWS (your boat) formula, to convince the array to show a BLANK rather than 'skip' a non-applicable value, as it messes up the order.

    In the attached, under the litres column, I need to total the 'litres (weight)' amount for the applicable material UNLESS it shows 'N/A: Soluble' under the FORM column to the right, whereas it then wants to be blank. The standard array skips the two 'N/A: Soluble' results (as it should), but this bunches up the info so it's not on the right lines.

    I only sort of 75% know what I'm doing, so can't get my head round it! A lot of the info auto-populates from various worksheets, so it needs to be a very dynamic list!

    Present formula at the moment in the litres column is:

    =IFERROR(IF($S$44<>"N/A",
    INDEX($W$48:$W$59,SMALL(IF($R$48:$R$59="RM",ROW($S$48:$S$59)-ROW($Q$48)+1),ROWS(B$31:$B31))),
    INDEX($S$31:$S$42,SMALL(IF(($R$31:$R$42="RM"),ROW($V$31:$V$42)-ROW($Q$31)+1),ROWS(B$31:$B31)))),"")

    Thanks

    Stuart
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Force INDEX SMALL ROW Array to Show Zero/Blank Rather Than 'Skipping' Result

    I think you've over-simplified the sample file you've attached, because the formula you give refers to empty cells on the worksheet, so although you have manually added arrows, at the moment I can't see any reason why you can't just use a more simple Index-Match combination with an IF check for 'N/A: Soluble'? For example, all the entries you want for Litres are 'RM' entries in the sample, so the need for the RM check isn't clear. Can you maybe upload a more comprehensive file (with confidential data removed or overwritten with made-up info, if necessary)?
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    04-14-2015
    Location
    Lincoln, UK
    MS-Off Ver
    2013
    Posts
    37

    Re: Force INDEX SMALL ROW Array to Show Zero/Blank Rather Than 'Skipping' Result

    Thanks Aardigspook -

    Sorry I was rushing it.

    I've corrected the references in the attached.

    The ingredients and quantities change constantly in the cells to the right, based on other sheets

    Thanks,

    Stuart
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Force INDEX SMALL ROW Array to Show Zero/Blank Rather Than 'Skipping' Result

    Please try at F3:G14
    =IF(N(VLOOKUP($B3,$K$20:$N$24,2,)),VLOOKUP($B3,$K$20:$N$24,COLUMNS($D3:F3),),"")

+ 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: 2
    Last Post: 04-25-2017, 09:11 AM
  2. VBA INDEX [array] formula skipping lines when dragged down
    By KAP123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2016, 12:47 PM
  3. [SOLVED] tie scores (stopping/skipping duplicates) using index/match plus small function
    By Mrjpjones in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2016, 02:13 PM
  4. Index+Small and divide result
    By daboho in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-02-2016, 05:30 AM
  5. Index, small, if, row llok up multiple values and return a result
    By 077james86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2015, 02:31 PM
  6. [SOLVED] Index small array
    By namluke in forum Excel General
    Replies: 3
    Last Post: 03-12-2014, 06:00 PM
  7. How to show results of index small if from left to right
    By suton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2013, 06:39 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