+ Reply to Thread
Results 1 to 6 of 6

Offset Match? Find something in 1st row, search in column, sum product diff column

  1. #1
    Registered User
    Join Date
    10-23-2015
    Location
    united states
    MS-Off Ver
    2013
    Posts
    23

    Offset Match? Find something in 1st row, search in column, sum product diff column

    TaDecide.xls

    I have attached a file and would appreciate any help that I can get.

    I was told to use this formula =SUMIF(OFFSET(A1, 1, MATCH("Sector", 1:1, 0)-1, 3000), "Public", INDIRECT(L2:L&"Public"+1))/COUNTIF(OFFSET(A1,1,MATCH("Sector", 1:1, 0)-1, 3000), "Public")


    I have uploaded the file with which I am working (though i need to do it on multiple files). Could you please help me find the Sector (G), and sum column L if the value in sector is "public"?

    Thank you very much for any help that you can provide

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Offset Match? Find something in 1st row, search in column, sum product diff column

    Can you explain what you are trying to do? For instance, where are you trying to use that formula (it's not anywhere in the file you attached).
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    10-23-2015
    Location
    united states
    MS-Off Ver
    2013
    Posts
    23

    Re: Offset Match? Find something in 1st row, search in column, sum product diff column

    Im sorry that I didn't explain it clearly enough. I am trying to look in the first row and find "Sector", then within Sectors column, find all of the times that the word "Public" is used and pull from the column that has "average course cost", every time that the word public is used. For example, not using sector and public, this is what I want to do

    I have a workbook of data in excel and I am trying to look for a word "Pluto" in the first row of the document, then I want to search within "Pluto"'s column and look for the word "Blue" which will occur multiple times in the column. I then want to get an average of numbers in another column for each row that blue occurs in.

    So it would look like

    a b c d e pluto f g
    x x x x x blue x 20
    x x x x x yellow x 40
    x x x x x blue x 29
    x x x x x blue x 30


    I want to search for "pluto", find all of the "blue" within that column, and pull the numbers associated with "blue" (20, 29, 30) and average them.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Offset Match? Find something in 1st row, search in column, sum product diff column

    Copy the headers from TA DECIDE Data and paste on a new worksheet. Enter PUBLIC in A1 of the new worksheet. Enter this formula where you want the data to start and fill across to cover all the columns and then fill down until the data runs out.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    10-23-2015
    Location
    united states
    MS-Off Ver
    2013
    Posts
    23

    Re: Offset Match? Find something in 1st row, search in column, sum product diff column

    Thank you for your help. Im not sure exactly what your code is doing? I am trying to just get a number (average) in one cell. Can you explain what this is doing and where the answer is?

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Offset Match? Find something in 1st row, search in column, sum product diff column

    I forgot the AVERAGE. I used column K as it isn't very good to average averages.
    On Sheet1 enter this where you want the average:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I thought that you wanted the complete record for all matches to PUBLIC. If you only want the average of values for PUBLIC this can be done on the TA DECIDE Data worksheet with this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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: 6
    Last Post: 09-03-2015, 09:51 PM
  2. Replies: 9
    Last Post: 04-12-2015, 07:20 PM
  3. [SOLVED] OFFSET+ INDEX-MATCH to find first non-zero column
    By Ztv in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2014, 01:51 PM
  4. Replies: 8
    Last Post: 09-16-2014, 09:49 AM
  5. Replies: 0
    Last Post: 07-30-2013, 07:42 PM
  6. Replies: 2
    Last Post: 01-13-2013, 06:50 AM
  7. [SOLVED] search column, hyperlink, offset, substitute, match (omg)
    By nastech in forum Excel General
    Replies: 13
    Last Post: 07-13-2006, 05:05 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