Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Array formula to bring back results if column DI20 onwards has a value of 1 in a cell

Posted on 2016-10-04
14
41 Views
Last Modified: 2016-10-04
Hi Experts using Excel 2010

I have the following formula which works just fine….

Array Formula
=INDEX('Data Entry'!BF$20:BF$532,SMALL(IF('Data Entry'!$BF$20:$BF$532>=$C$1,IF('Data Entry'!$BF$20:$BF$532<=$F$1,ROW('Data Entry'!$BF$20:$BF$532)-ROW('Data Entry'!$BF$20)+1)),ROWS(A$6:A6)))

However, i want to add an additional step into the above formula so the formula also looks in column DI20 onwards and if the cell has a value of 1 return back the result.
0
Comment
Question by:route217
  • 6
  • 5
  • 3
14 Comments
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41827790
Hi,

pls try

=INDEX('Data Entry'!BF$20:BF$532,SMALL(IF(AND('Data Entry'!$DI$20:$DI$532=1,'Data Entry'!$BF$20:$BF$532>=$C$1),IF('Data Entry'!$BF$20:$BF$532<=$F$1,ROW('Data Entry'!$BF$20:$BF$532)-ROW('Data Entry'!$BF$20)+1)),ROWS(A$6:A6)))

Open in new window

Regards
0
 

Author Comment

by:route217
ID: 41827811
Hi Rgonzo

The formula returns #num! When I drag it down the first cell returns the correct value then errors
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41827813
Could you send a sample
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:route217
ID: 41827817
Tricky...to...do so..
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41827822
Entered as array?
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41827823
Maybe
=INDEX('Data Entry'!BF$20:BF$532,SMALL(IF('Data Entry'!$DI$20:$DI$532=1,IF('Data Entry'!$BF$20:$BF$532>=$C$1),IF('Data Entry'!$BF$20:$BF$532<=$F$1,ROW('Data Entry'!$BF$20:$BF$532)-ROW('Data Entry'!$BF$20)+1))),ROWS(A$6:A6)))

Open in new window

0
 

Author Comment

by:route217
ID: 41827825
Yes..as an array...and apologise that I cannot upload a file
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41827842
Formula posted by Rgonzo HERE should work for you.
0
 

Author Comment

by:route217
ID: 41827853
Ok rgonzo I have attached a file...with test data...not sure what u may have done wrong.
test-data_.xlsx
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41827859
You need to wrap the formula within IFERROR like this....
=IFERROR(INDEX('Data Entry'!A$2:A$6,SMALL(IF('Data Entry'!$DI$2:$DI$6=1,IF('Data Entry'!$BF$2:$BF$6>=$C$1,IF('Data Entry'!$BF$2:$BF$6<=$F$1,ROW('Data Entry'!$BF$2:$BF$6)-ROW('Data Entry'!$BF$2)+1))),ROWS(A$3:A3))),"")

Open in new window


The column DI on Data Entry Sheet doesn't meet the criteria i.e it is blank and it doesn't contain 1 in any of its cell.
0
 

Author Comment

by:route217
ID: 41827860
Not sure what I may have done worng..typo
0
 
LVL 30

Assisted Solution

by:Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj) earned 250 total points
ID: 41827861
Please refer to the attached.
test-data_.xlsx
0
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 250 total points
ID: 41827864
Corrected file
test-data_V2.xlsx
0
 

Author Comment

by:route217
ID: 41827882
Many thanks and much appreciated experts for the excellent feedback.

Posting one more question in relation to above..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

856 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