Go Premium for a chance to win a PS4. Enter to Win

x
Solved

# My formula in excel will not work

Posted on 2014-02-06
Medium Priority
365 Views
Can someone look at the excel example that I downloaded, and tell me what I did wrong? The yellow high-lighted is what I am wanting to accomplish and the light-blue is what I am getting with the formulas I created and am stumped as to what I am doing wrong?
The first part  -- IF(ROWS(\$F\$6:\$F6)>COUNTIF(Amount,">0"), -- is working fine but the Index fuction  --  INDEX(\$A\$6:\$A\$19,SMALL(IF(Amount>0,ROW(Amount)-ROW(D\$6)+1),ROWS(F\$6:F6))) -- is not working.

In this example, 7 names have amounts in the amount column, and if another name (for instance Susie) would have an amount that needs to dynamically show also.
learning.xlsx
0
Question by:beemmer

LVL 23

Accepted Solution

NBVC earned 2000 total points
ID: 39840310
The formula in F6 is an Array formula.  You need to confirm it with CTRL+SHIFT+ENTER not just ENTER so that you see { } brackets appear around the formula... then you can copy it down.

Also to get rid of the #N/A in the VLOOKUP columns, add an IFERROR()

e.g. in G6:

=IFERROR(VLOOKUP(\$F6,\$A\$6:\$D\$19,2,FALSE),"")

copied down
0

Author Closing Comment

ID: 39840847
Thank you so much for your help.  Your solution worked beautifully.  I would not have figured that out on my own.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to usâ€¦
###### Suggested Courses
Course of the Month8 days, 17 hours left to enroll