+ Reply to Thread
Results 1 to 17 of 17

Returning Multiple Results into different columns from a master list

  1. #1
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Returning Multiple Results into different columns from a master list

    Hi everyone,

    I'm new here and this is my first question so if it is structure strangely just let me know and I can try and explain the problem I am having a little bit more clearly.

    So my Problem:

    I have attached a workbook that I hope illustrates my situation.

    I am looking to be able to search a list for a mark of relevancy (In this case yes) and return the value in the cell next to it (Document Name in this case).

    I have been trying to do this by using this formula Type_of_Name_1_Relevant

    =IF(ISERROR(INDEX(Type_of_Name_1_Table,SMALL(IF(Type_of_Name_1_Relevant=$B$12,ROW(Type_of_Name_1_Relevant)),ROW(1:1)),7)),"",INDEX(Type_of_Name_1_Table,SMALL(IF(Type_of_Name_1_Relevant=$B$12,ROW(Type_of_Name_1_Relevant)-1),ROW(1:1)),7))
    (B12 just contains the word yes)

    This formula works well for the first column that I have, but it does not work when it comes to any column after that.


    Possible solutions that I have thought of

    If I could find a way to modify my formula to match multiple criteria as opposed to just the one that it checks now then I could populate the Names column and then return values if The name and a yes appears

    Other than that I am pretty new to excel in general and have been able to do what I have by perusing others solutions to answers so any expertise that can be offered will be welcomed.

    As I said at the start I hope my explanation of the problem is enough, and if it is not I will do what I can to change that.
    Attached Files Attached Files

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    The formula you are using makes no sense to me??? could you explain how you think it should work?
    I can get a better grasp on what you expect then...it may just be me, but it looks like there is some missing information needed...
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Returning Multiple Results into different columns from a master list

    I don't fully understand how it works, I found it on a website and got it working with some tweaks, as I mentioned I'm pretty new to excel was just playing around with others formulas for the most part.

    What I'm using it for is to search a column of the worksheet and find the word "yes"(located in cell B12). Once it has found the word it fills in the cell in the next sheet with the document name (Returned Result in my example)
    However,
    The problem is that I need the results separated into columns on the next sheet, and the current formula for whatever reason does not work after the first column.

    So realistically the formula I am using is useless to me at this point, because it fails to meet one of my basic needs.

    So my question is, Can I search a column for a string of text and return a value in a different cell, and can I easily populate the data into columns on another sheet.

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    I think this is possible, just needed to know how attached you were to your basic formula
    I will probably CHANGE, DELETE, or IGNORE most of the named ranges though, they really don't seem to apply to the problem..
    It may take a bit as it is supper here, so I may be awhile

  5. #5
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Returning Multiple Results into different columns from a master list

    I can very easily be completely unattached from that formula haha.

    Any help you can offer will be greatly appreciated.

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    Okay, I didn't have to change as much as I initially thought, I did ignore the 'Type_of_Name_#_Table' ranges, And added a new Named range called 'Type_of_Name_Tables' refering to 'Overall Results Page'!$A$1:$H$203 that ecompasses those tables and leaves some room for the (hinted at) other tables

    Ithen put the following Array Formula (Cntrl+Shift+Enter,not just Enter) into cell B2 on the 'Relation' page:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down and across
    see attachment

    Hope this helps
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Returning Multiple Results into different columns from a master list

    dredwolf is god!

    This is awesome, I don't understand at all what it is doing and it does the job, however I seem to be having a problem with it and I hope its an easy fix.

    When I get up to G1 in the formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    the formula stops returning results.

    Maybe I am just pushing the limits of the formula or maybe I am using it the wrong way.

    Thanks for your help this looks great, and I really hope that I can get it working because this will save me so much work

    SpnMan

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    Do you have a named range for the column ?
    The Substitutes are to create the named range for the indirect to reference, so if there is no Named range to match the Indirect, an error will return, causing blank cells, also, the named range I created only extended to row 203, if your ranges are beyond that, again error, which causes blanks...See the name manager to change the size of that Range, and it will also show you how the other ones are defined..

    If your still having a problem after that, upload again, and I'll see if I can spot the problem

  9. #9
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Returning Multiple Results into different columns from a master list

    I have a named range for the whole table. It is substantially bigger than my example (A1:H6934)

    Is my table too large?

    Do I need to maintain my named ranges on the different sections? Does that play into recognizing the different columns.

    I cannot upload right now, at work, but I will definately extend my example to see if it works, and then upload the result.

    Thanks again for all your help, I am definately much closer to the end result than I was before you saw it in your heart to help.

    SpoonMan22

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    the columns each have a separate named range for the relevancy test (ie - 'Type_of_Name_1_Relevant','Type_of_Name_2_Relevant'..etc) that need to bee defined for the formula to work, that is what the indirect/substitute are trying to do, reference that named range, if your type of name tables were all the same size, or at least spread out at the same distances, we could probably use a different way to access the information, but if the sample is an indication, each of these tables can be of varying sizes and positions, so the named ranges seem a better way to go ..

  11. #11
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Returning Multiple Results into different columns from a master list

    Ok, I think I am starting to get the idea.

    So each section has a named range (and the section relates to the columns on the other sheet), So in your workbook both the relevant column and the sections have named range, are both of these necessary?

    I don't understand how indirect and substitute work so getting a grasp of your formula is a little rough, but indirect finds the yes, and then substitute returns the document name?

    I am still having trouble making it larger though, do the names of the ranges matter?

  12. #12
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    Actually, only the sheet with all the tables on it have a named range, the formula derives the named range from the column header, that's what it uses to see if the data is relevant or not..
    I'll look at the book, but if you look at the name manager, and the ranges with 'Relevant' at the end, the refers to area shows what cells they are referencing..
    I'll delete the unnecessary ranges, I left the old ones in because I was not sure if you would need them for further calculations or not,...my bad

  13. #13
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Returning Multiple Results into different columns from a master list

    Dont apologize for anything, you know exactly what you are doing I'm the one making this difficult .

    So to clarify, I need the named ranges to cover the "Relevant" column (F something to F something else) and the names to be the same as the column headers on sheet 2 with the addition of the named range ending in relevant.

  14. #14
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    See Attachment

    I got rid of all the irrelevant named ranges, I took it too number 10, with absolutely no problems, so expanding further ( by looking at HOW the named ranges are defined ) should be fairly simple now, they ALL have to be NAMED the same way, that's how the formula works, it finds the named range through the use of the column header on the 'Relation' sheet...please look closely at it!

    Also I did a bit of modification on the 'Overall Results' sheet, just to make it more readable from the copy/pastes
    You may notice a lot of similar results, but thats a result of the copy/paste you used to expand the table, the info is still coming from the right areas!

    Hope this Helps
    Attached Files Attached Files

  15. #15
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    And basically 'YES!' to your last post

  16. #16
    Registered User
    Join Date
    02-24-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Returning Multiple Results into different columns from a master list

    As I have mentioned previously you are a god, I cannot even begin to thank you. Just dont be suprised when the church of dredwolf starts up haha

  17. #17
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Returning Multiple Results into different columns from a master list

    LOL...personally, I'd prefer the 'Church of BUD", (My preferred beer ), but thank you VERY Much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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