+ Reply to Thread
Results 1 to 40 of 40

Indexing formula needed for two pages

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Indexing formula needed for two pages

    Hi guys, I hope everyone is doing well. I'm looking for a little help on this project. Let me explain:

    I have a workbook with 2 sheets.

    Sheet 1 = A breakdown of different quality levels with a list of components. Those levels are "Minimum", "Recommended", "Premier", and "Elite".

    Sheet 2 = A list of different computer component choices. In this example, Sheet 2 is a list of different computer cases to choose from.

    What I want to be able to do is choose an item in Sheet 2 and have it automatically entered in the corresponding cell in Sheet 1. Here is an example:

    In Sheet 2 i have a list of different computer cases. In column D I want to enter a letter or letters that corresponds with the name of the option (Minimum, Recommended, Premier, and Elite), those letters would be M,R,P,E. If for example i choose cell D3 which is the Corsair 550d and place the letter P in that cell i want cell F3 in Sheet 1 to display the combination of cells B3+C3 from Sheet 2 so it reads "Corsair 550d in F3. I also want the price data of cell E3 from Sheet 2 to automatically be entered into G3 in Sheet 1. I would also need the option to enter multiple letters in any cell in column d of Sheet 2. Let's say in Sheet 2 cell D3 I enter the letters M,R,P,E I'd like the text from B3 and C3 of sheet 2 to be entered into Sheet 1 cells B3, F3, J3, N3.

    I hope that makes sense and I hope it's possible. Thanks in advanced to anyone who takes the time to assist me, i really appreciate it!!
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Indexing formula needed for two pages

    Hi
    Use in D3 (helper valid for copy to H, L and P) and represent line number in Sheet2!
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Use in B3 and C3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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


    See the file Excel help (1).xlsx

  3. #3
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    thank you! I'm going to check it over in a few and report back.

  4. #4
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    the only problem i see is that there is always an option selected by default in Sheet 1!. Even if i haven't imputed a letter in Sheet 2! there always remains an item in Sheet 1! cells B3, F3, J3, and N3

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    You could modify the formulas so that if a letter is not input there will be no display. Try pasting this formula in D3:
    Please Login or Register  to view this content.
    Paste this formula into cell B3:
    Please Login or Register  to view this content.
    Paste this formula into cell C3:
    Please Login or Register  to view this content.
    1. Select B3, C3 and D3
    2. Press and hold Ctrl and C
    3. Select F3
    4. Press and hold Ctrl and V
    5. Select J3, repeat step 4
    6. Select N3, repeat step 4
    7. Press the Esc key.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    sorry JeteMC, for some reason i couldn't log in over the last week. I do have 2 questions.

    1. What happens if i have more than 11 entries in sheet2 to choose from?

    2. In sheet2 Column G you have the formula... =SUMPRODUCT(--(LEN(Sheet2!$D$3:$D$13)>LEN(SUBSTITUTE(Sheet2!$D$3:$D$13,"E","")))*ROW(A1:A11)).

    What does the "E" represent?
    Last edited by RachelMads02; 03-02-2016 at 11:47 PM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    Hoping that you'd get back, suggest modifying the formula for B3, to be copied to F3, J3 and N3 so it reads:
    Please Login or Register  to view this content.
    On sheet 2 you could eliminate A2:A13.
    What happens if i have more than 11 entries in sheet2 to choose from?
    Change the red numbers in the above formula to match the row at the bottom of the range, for instance if you had 20 cases you could change the number to 23 (or 25 for that matter). Not sure what the second question means, as I don't see anything in sheet 2 column G. Attached is a copy of the file with the above mentioned changes applied. Might be good to look them over, make any revisions needed, and reattach so that we can all be on the same wave length.
    Copy of Excel help-index values based on priority.xlsx
    Let me know if you have any questions.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Indexing formula needed for two pages

    ARRAY formulas are used
    For B, F, J & N
    Please Login or Register  to view this content.
    For C, G, K & O
    Please Login or Register  to view this content.

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    formula will be covered with{} brackets.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    for some reason i am totally confused.

    1. the above formula is not the formula that is in B3 of the attached workbook you attached to your most recent reply where you said the changes were made. The formula i see in B3 is

    =IF(D3="","",INDEX(Sheet2!$A$3:$A$13,D3,1)&" "&INDEX(Sheet2!$B$3:$B$13,D3,1))

    Am i supposed to change B3 in the workbook with the above formula you stated?

    2. When i do change the red numbers to say, 25, and enter in a letter in Sheet2 cell C17, nothing is added to sheet1 Cell B3.

    I want to be able to have a list of cases, I'm never going to be sure what the amount will be. I would assume no more than say 25 maybe 30 at the max.
    Last edited by RachelMads02; 03-03-2016 at 11:13 AM.

  10. #10
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    Quote Originally Posted by kvsrinivasamurthy View Post
    ARRAY formulas are used
    For B, F, J & N
    Please Login or Register  to view this content.
    For C, G, K & O
    Please Login or Register  to view this content.

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    formula will be covered with{} brackets.
    now what happens when i want to have more than 11 entries in sheet 2? Say i want to have entries down to row 32. What then?

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Indexing formula needed for two pages

    Change 13 to 32 n the formula.
    Since it is a ARRAY formula any editing should be confirmed with
    Ctrl+Shift+Enter keys
    not with simply Enter key

  12. #12
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    Quote Originally Posted by kvsrinivasamurthy View Post
    Change 13 to 32 n the formula.
    Since it is a ARRAY formula any editing should be confirmed with
    Ctrl+Shift+Enter keys
    not with simply Enter key


    Now i noticed one other problem. If i don't have the letter E in any cell in Sheet2 Column C the corresponding #NUM occurs in Sheet1 Cell B3 and C3. I need cells B3 and C3 to remain empty until i plug in a letter in Column C of Sheet2.
    Last edited by RachelMads02; 03-03-2016 at 11:47 AM.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    Don't want to confuse things, however I want to correct for shortcomings in post #7. The ranges of all three formulas would need to be changed such that the formulas for cells B3, C3 and D3 respectively would read:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  14. #14
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Indexing formula needed for two pages

    Change the formula as
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    Quote Originally Posted by JeteMc View Post
    Don't want to confuse things, however I want to correct for shortcomings in post #7. The ranges of all three formulas would need to be changed such that the formulas for cells B3, C3 and D3 respectively would read:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    I've tried to duplicate this formula for other sheets in my workbook and I'm having the same problem. I'm getting #N/A as an outcome in some cells. Can you tell me where I'm going wrong? The workbook is attached.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    Quote Originally Posted by kvsrinivasamurthy View Post
    Change the formula as
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    what happens when i want to add more entries? Say up to 25 entries instead of 11?

  17. #17
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    I am going to suggest greatly simplifying the formula in E7 to read:
    Please Login or Register  to view this content.
    As evidenced in the attached file that will find the elite option for storage (main). The change will not find the other three options as they are all assigned to the same cell. I tested by leaving only one option at a time in Storage!C3 and the formula works as I would expect.
    Here is a copy of the latest version of your file with the modified formula applied: Copy of Excel help-index values based on priority.xlsx
    Let me know if you have any questions.

  18. #18
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    i can keep the other formulas for the previous sheet for "CASES"? Correct?

  19. #19
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    that formula doesn't work if I'm entering more than 1 letter in the Quality column, such as EPRM

  20. #20
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Indexing formula needed for two pages

    Upload the file with such 25 entries showing the expected result.

  21. #21
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    Quote Originally Posted by kvsrinivasamurthy View Post
    Upload the file with such 25 entries showing the expected result.
    here it is

  22. #22
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    Quote Originally Posted by JeteMc View Post
    I am going to suggest greatly simplifying the formula in E7 to read:
    Please Login or Register  to view this content.
    As evidenced in the attached file that will find the elite option for storage (main). The change will not find the other three options as they are all assigned to the same cell. I tested by leaving only one option at a time in Storage!C3 and the formula works as I would expect.
    Here is a copy of the latest version of your file with the modified formula applied: Attachment 449221
    Let me know if you have any questions.
    that formula doesn't work if I'm entering more than 1 letter in the Quality column, such as EPRM

  23. #23
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    Quote Originally Posted by RachelMads02 View Post
    that formula doesn't work if I'm entering more than 1 letter in the Quality column, such as EPRM
    You are correct, we need to use a modification of the one that José Augusto proposed in post #2:
    Please Login or Register  to view this content.
    I agree with kvsrinivasamurthy, we need to see the Storage and Options sheets with the expected results.

  24. #24
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    I've attached a workbook with my progress thus far. This project will have many different sheets separated by component, so I'm in essence taking the formulas and inserting them as i go. The problem i come into is when i may have more entries to choose from than a previous sheet of components such as:

    Storage. There will be a main storage and an extra storage all on the same "storage" sheet. I may need to have 20 or 25 main storage entries the same for extra storage entries. When i go to add new lines or alter the formula i get error messages in the corresponding cells on the "options" sheet as shown in the workbook.
    Attached Files Attached Files

  25. #25
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    OK, for storage (main) to work this is what the formula in J7 needs to look like:
    Please Login or Register  to view this content.
    Let me try to explain why J7 was showing #N/A, so that you'll know how to deal with that down the road. If you'll notice back in post #23 the ranges for the Storage were from row 3 through 25 (STORAGE!$C$3:$C$25...), or 23 rows. The ROW function was set to yield 23 rows ...ROW(F$1:F$23)... also. In the in the file attached to post #24 J7 the Storage ranges were changed (STORAGE!$C$3:$C$26...) but the ROW wasn't. In the formula suggested in this post the ROW function now yields 24 rows also. You can check this by running the evaluate function with the original ...ROW(F$1:F$23)... and the updated ...ROW(F$1:F$24)... to see why it makes a difference.
    Let me know if you have any questions.

  26. #26
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Indexing formula needed for two pages

    It will be easy to get formulas if these things are done.
    Format of Tables in all the sheets should be alike. For Eg Like in Sheet "CASES"
    The names of sheets should be exactly same as in A column of Sheet "OPTIONS".

    It is not clear where are those 25 entries.

  27. #27
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    @JeteMC
    so must i increase *ROW(F$1:F$24) to *ROW(F$1:F$25) every time i add a new row of entries? And decrease by 1 every time i remove a row?

  28. #28
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    I guess i am so confused because i don't know the basics of what the formula is saying

  29. #29
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    Yes, the number of rows supplied by the ROW function needs to match the number of rows in the Storage range. Additionally the arguments for the ROW row function need to start with row one as in ROW(a1:a24) because ROW(a3:A26) would give erroneous results.
    Let me know if you have any questions.

  30. #30
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    I think i'm beginning to understand how to manipulate this formula. In my overall project I've been able to handle the first 13 lines of the "options" sheet with your help, so thank you. Now when i reach the "power supply" sheet it begins to get a little more complicated. Let me explain.

    In the "options" sheet cell B14 i want to continue with the formula you've presented such as seen in B13, but i need a little more description. For example I'd like it to read:

    Gold Corsair RM750x Modular 650 WATT

    Like the other cells, it has to index the "power supply" sheet. When i insert the letter "Y" in any of the cells Q3:S3 it has to stipulate one of three phrases (Modular, Semi modular, Non Modular). If you look at "Power supply" Cell M14 you'll see the formula i wrote to indicate this.

    For the wattage if you refer to "power supply" cell N12 you'll see the formula i wrote for the wattage.

    I'm struggling to find a way to combine it all, do you have any suggestions?
    Attached Files Attached Files

  31. #31
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    Try this formula in Options!B14:
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  32. #32
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    that formula works except for one problem. If i don't have a quality selected (E,P,R,M) the word "watt" still displays in B14. I would need B14 to remain completely empty until i choose a Quality such as E,P,R,M.

  33. #33
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    Sorry about that, left a comma out of place, try this:
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  34. #34
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    that formula worked, thank you. If i added a column on the "options" sheet between column B & C titled "Amount" and wanted to use this column as a multiplier i run into a problem because i think i'm incorrectly utilizing the column. The problem is that i get #Value messages in some cells when i don't have a "Quality" option selected. It works when i select a quality option, but like before I'd like to keep the cells blank before a selection is made. Is that possible? Or would it be wiser to put an amount column in the "cases" sheet?
    Attached Files Attached Files
    Last edited by RachelMads02; 03-06-2016 at 09:09 PM.

  35. #35
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    The solution for D3, E3 and F3 is the same as in post #33. Modify the formulas so that there is only one closed parentheses in front of *C3 and one after. Here is an example of what I mean applied to the formula in D3:
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  36. #36
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    i was under the weather the last week, sorry for the delay. Things have worked very well so thank you very much. In the "Quality" column where i put the letters E,P,R,M, is there a way to have a Font color specific for each letter?

    E = Purple
    P = Blue
    R = Green
    M = Orange

    For example if i enter the letter E in any cell in the Quality column of the page "CASES" the letter will be displayed in purple. The same for P,R,M and their respective colors.

  37. #37
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    Glad (Hope) that you are feeling better.
    This could partially* be done with conditional formatting rules for "Format only Cells that Contain" and then "Specific Text". There is a rule for each letter which will work as long as there is only one letter per cell. *If there is more than one letter then font color is established by the rule with the higher priority.
    The attached copy of your file shows an example: Copy of Excel help-index values based on priority.xlsx
    Let me know if you have any questions.

  38. #38
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    Thank you, I'm improving! Is that the only way i can have each letter be a different color? One letter per cell? There's no way to combine them in one cell?

  39. #39
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: Indexing formula needed for two pages

    I think that there may be a VBA solution. Might be good to mark this thread 'Solved' (use thread tools link at top of page) and start a new thread on the VBA board so that it will get more attention from the folks over there.

  40. #40
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Indexing formula needed for two pages

    okay thank you for all your help!

+ 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. indexing formula
    By rdyas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2015, 02:13 PM
  2. sum totals from multiple pages if needed.
    By jumonjii in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-26-2014, 08:28 PM
  3. Indexing Months in a formula
    By chinasaucer in forum Excel General
    Replies: 2
    Last Post: 03-31-2011, 07:33 AM
  4. Excel 2007 : Help with a if & indexing formula
    By haxz_rsx in forum Excel General
    Replies: 2
    Last Post: 10-10-2010, 04:43 AM
  5. Indexing is changing formula
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2010, 10:41 PM
  6. Indexing formula
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2010, 01:38 PM
  7. Indexing help needed...
    By AshP in forum Excel - New Users/Basics
    Replies: 27
    Last Post: 01-03-2007, 06:05 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