Solved

Troubleshooting a Formula and Range Name

Posted on 2012-12-21
4
239 Views
Last Modified: 2012-12-21
EE Pros,

I've spent about 4 hours trying to get a formula in a set of columns/rows to properly behave. I've attached the WB and am hoping someone will take a quick look and see what I have done wrong.  There are two Name Ranges (Industry and Columntable).

The use is simple.  I want to select an industry (right now there are but 2 -- Banking & Insurance).  Once selected, all the ASSOCIATED records, only for that industry, are displayed and you can then see the relationship of the cells.  I want to be able to then change or update an individual record so that it is reflected back in the Data Base.

Thank you in advance.

B.
Solution-Alignment.xlsm
0
Comment
Question by:Bright01
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:leptonka
ID: 38714005
Hi,

Attached how I would do.
I changed your name definition and I separated the index column (A).
You need to confirm the formula in this column with Ctrl+Shift+Enter.

Cheers,
Kris
Solution-Alignment-redefined.xlsm
0
 

Author Comment

by:Bright01
ID: 38714174
Kris,

Thank you!  What you provided me works!  There are two things that need to be taken into consideration.  

1.) How do I get it to not execute if the max. number of industry records are reached?  So in Insurance there are 13 records and on Banking there are 16 records.  Is there a way to not have the formulas show up if there is no associated industry record?

2.) I'm going to have to figure out how I can update a record in the maintenance tab that automatically updates the DB....but I'm going to hold that for the next question.

Thank you!!!

B.
0
 
LVL 7

Accepted Solution

by:
leptonka earned 500 total points
ID: 38714227
Hi,

I am not sure I clearly understand your 1) question. You do not want to see the index numbers when there are no more data? You can use your IF solution for that formula, so in cell A6:
=IF(ROWS(B$6:B6)>$B$4,"",SMALL(IF(ISNUMBER(SEARCH($B$2,Industry)),ROW(Industry)-ROW(Data_Base!$A$3),ROWS(Columnsfromtable))+1,ROW(B1)))
Ctrl+Shift+Enter and copy down.

Relating 2) - It could be done only with some VBA code.
But why you do not use an autofilter on the original data, so on Data_Base sheet? And you can modify the data in-place.

I attached the corrected formula + autofilter.

Cheers,
Krs
Solution-Alignment-redefined.xlsm
0
 

Author Closing Comment

by:Bright01
ID: 38714284
Kris,

Great suggestions and thank you for the code!

Works well.........

B.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

773 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