+ Reply to Thread
Results 1 to 12 of 12

Help with Index function to find range of cells

  1. #1
    Registered User
    Join Date
    02-23-2016
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    8

    Help with Index function to find range of cells

    Hi,

    Want to extract data from a table based on certain criteria to create data for a scatter gram chart
    Extracted data will be in two columns of data & multiple rows; not just a single cell. I am looking for a way to put extracted data into a range of cells not just a single cell.

    See attached Excel file with the data, would like formula to place result in yellow highlighted area.

    Goal:
    Look for the desired title (NSS) in column E. For each occurrence of NSS automatically populate columns A and B with however many occurrences of desired title with corresponding yrs. of exp. and salary are found in Columns F and G. I've manually entered in data into column A and column B (yellow highlighted area) to show desired result.

    I think there's an easy solution here. I've tried a Vlookup & Index/Match formula but no luck & looked online & on Youtube for a solution. I think an array should work, just not sure how to set up formula. Any help would be greatly appreciated. Thanks!
    Attached Files Attached Files
    Last edited by Bretyuin; 02-24-2016 at 04:41 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Help with Index function to find range of cells

    try

    A19=INDEX($F$19:$G$31,SMALL(IF($E$19:$E$31=TRIM(RIGHT(SUBSTITUTE($A$17,":",REPT(" ",50)),50)),ROW($E$19:$E$31)-ROW($E$19)+1),ROWS(C$19:C19)),MATCH(A$18,$F$18:$G$18,0)) with CRTL+SHIFT+ENTER and drag down.

    Ps.Cell F18 need to change with Exp.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    02-23-2016
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with Index function to find range of cells

    Hi,

    Thanks for reply and formula. It provides the correct results for Column A but I also want the formula to derive the corresponding years of experience for Col. B. When I use your formula and try to copy or drag it from Column A into column B I get "#N/A". Any suggestions on how to get formula to derive the correct salary in column A and corresponding years of experience in Col. B

  4. #4
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Help with Index function to find range of cells

    Quote Originally Posted by Bretyuin View Post
    Hi,

    Thanks for reply and formula. It provides the correct results for Column A but I also want the formula to derive the corresponding years of experience for Col. B. When I use your formula and try to copy or drag it from Column A into column B I get "#N/A". Any suggestions on how to get formula to derive the correct salary in column A and corresponding years of experience in Col. B
    Try,

    in B19

    =INDEX(F19:F31,MATCH(A19,G19:G31,0))
    If answer helped you say Thanks by Add Reputation

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Help with Index function to find range of cells

    Quote Originally Posted by Bretyuin View Post
    Hi,

    Thanks for reply and formula. It provides the correct results for Column A but I also want the formula to derive the corresponding years of experience for Col. B. When I use your formula and try to copy or drag it from Column A into column B I get "#N/A". Any suggestions on how to get formula to derive the correct salary in column A and corresponding years of experience in Col. B
    As I said F18 cell change value with Exp. only and the results will come automatically
    Last edited by shukla.ankur281190; 02-24-2016 at 05:28 AM. Reason: typo error

  6. #6
    Registered User
    Join Date
    02-23-2016
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with Index function to find range of cells

    Hi,

    Thanks for reply. That works but is there just a single formula that can calculate values for Column A and Column B instead of two formulas?

  7. #7
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Help with Index function to find range of cells

    Quote Originally Posted by Bretyuin View Post
    Hi,

    Thanks for reply. That works but is there just a single formula that can calculate values for Column A and Column B instead of two formulas?
    just see post no.#5, from mr. ankur agarwal.

  8. #8
    Registered User
    Join Date
    02-23-2016
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with Index function to find range of cells

    Hi,

    Thanks for reply. That works but is there just a single formula that can calculate values for Column A and Column B instead of two formulas?

  9. #9
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Help with Index function to find range of cells

    Quote Originally Posted by Bretyuin View Post
    Hi,

    Thanks for reply. That works but is there just a single formula that can calculate values for Column A and Column B instead of two formulas?
    see post#5,

    u need to change the title in F18, "Yrs. Of" to "Exp."

    and it will work.

  10. #10
    Registered User
    Join Date
    02-23-2016
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with Index function to find range of cells

    Thanks! That solves it! I appreciate the help

  11. #11
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Help with Index function to find range of cells

    Quote Originally Posted by Bretyuin View Post
    Thanks! That solves it! I appreciate the help
    Happy to help ...

    and also say thanks to Mr. ankur shukla, and please mark thread as solved.

  12. #12
    Registered User
    Join Date
    02-23-2016
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Help with Index function to find range of cells

    Thanks, that worked. I appreciate the 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. Replies: 3
    Last Post: 01-22-2015, 06:21 PM
  2. Find value in range with two criterias, INDEX MATCH MAX
    By gnoke in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-24-2014, 07:48 AM
  3. [SOLVED] Correct syntax for function to find average based on background color of cells in range
    By moosetales in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2014, 12:24 AM
  4. Find index of range/row in for each loop
    By vizzkid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-26-2013, 08:10 AM
  5. Replies: 3
    Last Post: 09-17-2010, 11:07 AM
  6. Find last row in range using INDEX
    By skysurfer in forum Excel General
    Replies: 3
    Last Post: 09-03-2010, 02:23 PM
  7. Find Column Number and then use Index Function
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-03-2008, 12:59 PM

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