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
2
Medium Priority
?
365 Views
Last Modified: 2014-02-06
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
Comment
Question by:beemmer
2 Comments
 
LVL 23

Accepted Solution

by:
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

by:beemmer
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question