Solved

Troubleshooting a Formula and Range Name

Posted on 2012-12-21
4
231 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Compile Error 7 41
Sum iF  based on a null cell 11 29
Auto Adjust Percent rate 5 30
min values in series 13 0
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…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

895 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

18 Experts available now in Live!

Get 1:1 Help Now