+ Reply to Thread
Results 1 to 9 of 9

Array formula help

Hybrid View

  1. #1
    Registered User
    Join Date
    02-27-2017
    Location
    USA
    MS-Off Ver
    MS10
    Posts
    22

    Array formula help

    Hello all

    I was wondering if you could please help me. I created a spreadsheet and have got 1 array formula working but I can't seem to replicate it.

    I want to be able to find the highest loss figure (will be a minus figure) and again the highest figure at physical variance (again will be a net figure)

    The table in the bottom with the total number of purchases has an array formula that works on finding the products just based on the terms "glassware", "silver" "crockery" and I want to replicate that across the top tables so that I don't have to manually update cell numbers.

    Is anybody able to have a look and let me know what I'm doing wrong?

    I would hugely appreciate the help.
    Attached Files Attached Files

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

    Re: Array formula help

    I just get a lot of errors when I open your file, presumably because you have deleted some rows from the sheet called 'Item Details 2016'. I presume you want your array formula to go into cell C3 of the Report sheet, and if so you can use this:

    =SMALL(IF('Stock Sheet'!$A$3:$A$34=LOOKUP("zzzz",$A$2:$A3),'Stock Sheet'!$K$3:$K$34),B3)

    You must commit this using the key combination of Ctrl-Shift-Enter, and then you can copy it down into the appropriate cells.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-27-2017
    Location
    USA
    MS-Off Ver
    MS10
    Posts
    22

    Re: Array formula help

    Hey Pete

    Thank you so much. That wasn't quite it.

    I'm basically trying to copy the formula I have in the bottom table. =IFERROR(INDEX('Stock Sheet'!F$3:F$204,SMALL(IF(('Stock Sheet'!A$3:A$204=A$20)*('Stock Sheet'!F$3:F$204>0),ROW('Stock Sheet'!A$3:A$204)-MIN(ROW('Stock Sheet'!A$3:A$204))+1),ROWS($1:1))),"")

    And make that work in the top charts. I've tried to copy it but you can see it gives me a figure of -£28.00 which is still incorrect as there is a greater minus figure of -£381.78 which it wont pick up and I don't understand why. I'm basically looking for a way to elimate me having to update cell numbers each month

    I've reattached my spreadsheet with my rubbish excel skills.

    Any help would be really appreciated.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Array formula help

    Hi, welcome to the forum

    Stock sheet
    To begin with, if all you are doing is referencing a single cell (anywhere), just use
    ='Item Details 2016'!A3
    not
    ='Item Details 2016'!A:A
    Same for B and C?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-27-2017
    Location
    USA
    MS-Off Ver
    MS10
    Posts
    22

    Re: Array formula help

    Thank you for the welcome

    I'm not referencing a single cell.

    I'm basically trying to look through all the glassware and find the one that is the highest cost variance and then find the product that goes with it. What I don't want to do is to change the cell numbers each month as I add new products in each month so I just want it to always look in glassware and find those, if that makes sense.

    In the bottom chart - total number of purchases, it works perfectly! I just cant get it to work in the others.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Array formula help

    Quote Originally Posted by helpme1233 View Post
    I'm not referencing a single cell.
    In Stock sheet A3 and B3 down, yes, you are.

    OK, if you were doing this manually, what would you do?

  7. #7
    Registered User
    Join Date
    02-27-2017
    Location
    USA
    MS-Off Ver
    MS10
    Posts
    22

    Re: Array formula help

    Sorry I'm using the report sheet not the stock sheet. Everythign I'm working on is on the report sheet.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Array formula help

    Yes, I understand that, I was just making an observation about the Stock sheet

    OK, if you were doing this manually, what would you do?

  9. #9
    Registered User
    Join Date
    02-27-2017
    Location
    USA
    MS-Off Ver
    MS10
    Posts
    22

    Re: Array formula help

    Sorry - total misunderstanding on my part.

    I'd look in the glassware and look at what product is the highest in terms of loss and in terms of quantity and manually fill that in.
    Same thing with crockery and same thing with silver.

+ 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: 3
    Last Post: 04-02-2016, 08:16 PM
  2. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  3. [SOLVED] Evaluate Named Range Array formula to VBA Array
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2014, 09:06 PM
  4. Array formula + Array formula with criteria that lookups a Table
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 11:41 AM
  5. Replace hard coded array in formula with link to input array
    By David Brown in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2011, 07:45 AM
  6. Converting 3x10 array to a 1X30 array to run a Match formula
    By NBVC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2009, 07:45 AM
  7. Replies: 0
    Last Post: 07-27-2005, 11: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