+ Reply to Thread
Results 1 to 6 of 6

Index can return an entire column, but how about a partial colum?

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Index can return an entire column, but how about a partial colum?

    Index to find array.xlsm

    I understand that if I leave the column number of the Index function blank it will return the entire column. What I am trying to do is create a formula that will return only a partial column. I designate criteria in C1:C4, the formula finds C1&C2&C3&C4 in the appropriate data table column, and then finds the data table column that was designated in the A column, and sums all the values in the column, as long as it is in the appropriate row that matches the C1:C4 criteria.

    As the sheet is set up now, with 2014Mesocycle 2Wk 14Day 1 in C1:C4, and "Total Volume" in A7 of the time sheet, it would search in Ex_Data_LBS in the first column (designated by the Counta function) until it found "2014Mesocycle 2Wk 14Day 1" in rows 160-162. It would then search for the "Total Volume" column and sum all values that were in that column, but only in rows 160-162.

    The below formula is a close as I got, I put it inside a sum function and it summed the entire column.

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


    Any assistance would appreciated.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Index can return an entire column, but how about a partial colum?

    Any file would be appreciated

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Index can return an entire column, but how about a partial colum?

    Its at the top of the post.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index can return an entire column, but how about a partial colum?

    Try

    Get rid of Col A,B & C in Data sheet , you don't need them

    Use
    =SUMIFS(INDEX(Ex_Data_LBS,,MATCH("NL",Ex_Data_LBS[#Headers],0)),Ex_Data_LBS[Year/Macrocycle],IF($C$1="","*",$C$1),Ex_Data_LBS[Mesocycle],IF($C$2="","*",$C$2),Week_Data,IF($C$3="","*",$C$3),Ex_Data_LBS[Day],IF($C$4="","*",$C$4))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Index can return an entire column, but how about a partial colum?

    Thank you, it worked.
    What is the significance of the asterisks it the formula?

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index can return an entire column, but how about a partial colum?

    Well the "*" simply means that in case of a blank cell as your criteria in the SUMIFS formula...use all values

+ 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. [SOLVED] Checking if a value can be found in a colum and then return a value in another column
    By NowelChits in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2013, 12:02 PM
  2. [SOLVED] How to check if entire column has an partial match from a cell?
    By goljat in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-07-2013, 04:16 PM
  3. Search an entire column for a value, return entire row.
    By jdsmith1895 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2012, 12:53 PM
  4. Replies: 6
    Last Post: 05-17-2012, 12:07 PM
  5. if partial data exists in one colum, copy to another column
    By Gunther in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2011, 09:23 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