+ Reply to Thread
Results 1 to 6 of 6

Table formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Table formula

    Hi
    I have a Workbook with various sheets in that have drop downs/look ups etc from hidden sheets.
    One sheet has a large table in it which now goes up to "Z".
    There is a drop down that looks at this table and then cells that fill in from the drop down that look at the table, has the following formula in it:

    =IF($D$5='Filter Unit Reports'!$A$1,'Filter Unit Reports'!A2,IF($D$5='Filter Unit Reports'!$B$1,'Filter Unit Reports'!B2,IF($D$5='Filter Unit Reports'!$C$1,'Filter Unit Reports'!C2,IF($D$5='Filter Unit Reports'!$D$1,'Filter Unit Reports'!D2,IF($D$5='Filter Unit Reports'!$E$1,'Filter Unit Reports'!E2,IF($D$5='Filter Unit Reports'!$F$1,'Filter Unit Reports'!F2,IF($D$5='Filter Unit Reports'!$G$1,'Filter Unit Reports'!G2,IF($D$5='Filter Unit Reports'!$H$1,'Filter Unit Reports'!H2,IF($D$5='Filter Unit Reports'!$I$1,'Filter Unit Reports'!I2,IF($D$5='Filter Unit Reports'!$J$1,'Filter Unit Reports'!J2,IF($D$5='Filter Unit Reports'!$K$1,'Filter Unit Reports'!K2,IF($D$5='Filter Unit Reports'!$L$1,'Filter Unit Reports'!L2,IF($D$5='Filter Unit Reports'!$M$1,'Filter Unit Reports'!M2,IF($D$5='Filter Unit Reports'!$N$1,'Filter Unit Reports'!N2,IF($D$5='Filter Unit Reports'!$O$1,'Filter Unit Reports'!O2,IF($D$5='Filter Unit Reports'!$P$1,'Filter Unit Reports'!P2,IF($D$5='Filter Unit Reports'!$Q$1,'Filter Unit Reports'!Q2,IF($D$5='Filter Unit Reports'!$R$1,'Filter Unit Reports'!R2,IF($D$5='Filter Unit Reports'!$S$1,'Filter Unit Reports'!S2,IF($D$5='Filter Unit Reports'!$T$1,'Filter Unit Reports'!T2,IF($D$5='Filter Unit Reports'!$U$1,'Filter Unit Reports'!U2,IF($D$5='Filter Unit Reports'!$V$1,'Filter Unit Reports'!V2,IF($D$5='Filter Unit Reports'!$W$1,'Filter Unit Reports'!W2,IF($D$5='Filter Unit Reports'!$X$1,'Filter Unit Reports'!X2,IF($D$5='Filter Unit Reports'!$Y$1,'Filter Unit Reports'!Y2,IF($D$5='Filter Unit Reports'!$Z$1,'Filter Unit Reports'!Z2,""))))))))))))))))))))))))))
    As I've just come to column Z and there is potential to keep going "Aa,AB etc" is there a different way of doing this that will always look at the next column?
    Kieran

    Capture1.PNG

    Capture2.PNG
    Last edited by kieranm105; 09-19-2017 at 11:58 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Table formula

    No-one will be able to follow that!!! It bends my head.....

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Re: Table formula

    Hi Glenn
    I have attached an example of the 2 sheets that I am looking for a simpler solution to.
    Kieran
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Table formula

    Use this in A15... much easier to maintain...

    =INDEX('Filter Unit Reports'!A:Z,1+ROWS($1:1),MATCH($D$5,'Filter Unit Reports'!$A$1:$Z$1,0))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Re: Table formula

    Thanks Glenn, that will make it easier for me to keep track of things.
    Kieran

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Table formula

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 09-08-2017, 07:30 AM
  2. [SOLVED] Adding a row in a table corrupts formula in a summary table (2nd table)
    By How How in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2015, 02:35 PM
  3. [SOLVED] Formula for copying over relevant data from one table to populate another table
    By amasson in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-19-2013, 06:11 AM
  4. [SOLVED] Formula for copying over relevant data from one table to populate another table
    By amasson in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-25-2013, 12:41 PM
  5. Replies: 7
    Last Post: 01-25-2013, 05:17 PM
  6. Table amending by overwriting table?? what formula index/match
    By Tradesman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2013, 02:24 PM
  7. [SOLVED] Need a formula to sort a table into table (for a Table Plan) and name in column 2
    By jbpianoman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2012, 09:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1