+ Reply to Thread
Results 1 to 20 of 20

Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at it?

  1. #1
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at it?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Can somebody else look at this and tell if they see something that I'm missing? As far as I can tell everything is correct. Even when I enter the formula in, I receive no errors, but I'm still not getting the return values from my other workbook like I should be. What am I missing/doing wrong here?

    Thank you for being a 2nd/3rd set of eyes on this for me. Nobody else in my office can decipher this so I'm left to the guru's on this website.

    Thanks in advance to somebody who can share any wisdom with me.

  2. #2
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    I guess I should add that I am modifying this formula off of one that is currently working, but the working one is located within the same workbook. My new formula needs to exist outside of the workbook which holds all of the data.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That is the currently working "local" formula.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Are you array entering this formula? If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    If I've missed the mark here please upload a small Excel workbook with the data desensitized and that represents what you are working with. It's always easier to see things in context.
    Dave

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    =IFERROR(INDEX((INDIRECT("'"&$A$7&$D$4&"'!$C9")),SMALL(IF(LEN((INDIRECT("'"&$A$7&$D$4&"'!$C9"))),IF((INDIRECT("'"&$A$7&$D$4&"'!$D9"))>0,ROW(INDIRECT("1:"&ROWS((INDIRECT("'"&$A$7&$D$4&"'!$C9"))))))),ROWS(YY$1:YY1)),0),"")
    Not sure what you want that formula to do.

    You're using INDEX but you're only referencing a single cell, C9.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Yes. I'm array entering this. I'll see if I can upload an example with data cleansing.

  6. #6
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Quote Originally Posted by Tony Valko View Post
    Not sure what you want that formula to do.

    You're using INDEX but you're only referencing a single cell, C9.
    Basically, I was trying to get this formula to scan through a column of data in a different workbook and only return unique values from that column when the column next to it has a number that is greater than zero in it. Possibly I'm going about this in a wrong way? Maybe I should look into a different approach?

    C9:C100 holds the data that I need copied. And D9:D100 hold the quantity values. When D9:D100 is greater than zero, I need it to return C columns value.
    Last edited by xlyfe; 06-13-2016 at 07:23 PM.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    If you're referencing another file then that file must be open for the INDIRECT function to work properly.

  8. #8
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Quote Originally Posted by Tony Valko View Post
    If you're referencing another file then that file must be open for the INDIRECT function to work properly.
    The file will always be open when this INDIRECT function is operating. Otherwise I could use my INDIRECT.EXE function when it's closed. But that's not needed in this case.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Quote Originally Posted by mikerodrigueziii View Post
    Basically, I was trying to get this formula to scan through a column of data in a different workbook and only return unique values
    Are those numeric values or text values (or maybe both)?

  10. #10
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Tony. The values contain both numbers and text. Most of the time within the same cell.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    At this point I think we're going to need to see some sample data along with the result(s) you expect.

  12. #12
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Ok. I've attached the two files that I'm currently working with.

    The formula in question resides in the 8.5x11 INT workbook. The formula starts in the D8 merged cell. You will have to unmerge it in order for you to Array Enter the formula.

    The data that I'm try to get over into that column comes from the "working" workbook in the C column. I only need my list to pull over unique values from that C column which have a QTY of greater than zero in the D column.

    Please don't hesitate to ask me for any more information. And thank you all for giving your time and effort to this. Like I said before, this formula was working just fine when both of workbooks were combined into 1 single workbook. I just can't figure out why it's not working when they are separated.
    Attached Files Attached Files

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Sorry, I have download size limits plus I won't download files that contain VBA code.

  14. #14
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Ok. No worries. I completely understand. Let me strip the VBA from the files.

  15. #15
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Ok. Here are the Macro "free" versions of the files.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Nothing huh?

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    OK, I downloaded the files.

    Just wondering why you didn't put the 8.5 sheet in the Working file. That would make things a whole lot easier.

    In the 8.5 file here's the formula in cell D8:

    =IFERROR(INDEX((INDIRECT("'"&$A$7&$D$4&"'!$C9")),SMALL(IF(LEN((INDIRECT("'"&$A$7&$D$4&"'!$C9"))),IF((INDIRECT("'"&$A$7&$D$4&"'!$D9"))>0,ROW(INDIRECT("1:"&ROWS((INDIRECT("'"&$A$7&$D$4&"'!$C9"))))))),ROWS(YY$1:YY1)),0),"")

    The INDIRECT refers to A7 but it's an empty cell.

    What would cells A7 and D4 contain?

  18. #18
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    A7 = ActiveWorkbook
    D4 = ActiveWorksheet

    From the "working" file

    Also, the 8.5 sheet was in the main file originally, but it needs to move out now.

  19. #19
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    ActiveWorkbook and ActiveWorksheet are VBA expressions.

    Are you using VBA to create these formulas?

    If so, I'm not much of a programmer and I probably can't help you with this.

  20. #20
    Forum Contributor
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    365
    Posts
    163

    Re: Index, Indirect, Small, If, Len, Rows... My formula appears fine. 2nd eyes to look at

    Quote Originally Posted by Tony Valko View Post
    ActiveWorkbook and ActiveWorksheet are VBA expressions.

    Are you using VBA to create these formulas?

    If so, I'm not much of a programmer and I probably can't help you with this.
    Sorry, I meant to say...

    A7 = Hardware Job Cost - Working.xlsx
    D4 = Job Name

    And thank you again again for helping take a look at this Tony. It is greatly, greatly appreciated.

+ 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. Index Small Row Formula
    By davidcharis16 in forum Excel General
    Replies: 3
    Last Post: 04-16-2015, 04:40 AM
  2. Replies: 9
    Last Post: 08-29-2014, 09:42 PM
  3. [SOLVED] Formula using ROWS, COUNTIF, INDEX, and SMALL
    By her.rockstar in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-29-2013, 06:18 AM
  4. [SOLVED] SumIfS works fine for 2 conditions, but when I try to add a third, #value appears ??
    By dredwolf in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-18-2012, 04:56 PM
  5. Replies: 4
    Last Post: 06-28-2006, 04:35 PM
  6. [SOLVED] Fonts Too Small or Eyes Too Big?
    By Me2Ewe in forum Excel General
    Replies: 1
    Last Post: 01-12-2006, 02:40 AM
  7. Fonts Too Small or Eyes Too Big?
    By Me2Ewe in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-12-2006, 02:40 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