Solved

Troubleshooting a Formula and Range Name

Posted on 2012-12-21
4
221 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Kris,

Great suggestions and thank you for the code!

Works well.........

B.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
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…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now