+ Reply to Thread
Results 1 to 6 of 6

Vlookup and mean formulas

  1. #1
    Registered User
    Join Date
    08-07-2019
    Location
    Alberta
    MS-Off Ver
    Office 360 for Mac
    Posts
    9

    Vlookup and mean formulas

    Hello

    I am hoping someone can help me with Vlook-up and calculating the mean


    I have a single table where I want to search for a description called 'Field Blank', they I want to take the a specific value entered in a column and calculate the mean of the field blanks. Then I need to take the calculated mean value and input that into another column.

    Currently my VLOOKUP formula is =VLOOKUP("Field Blank",$C$7:$I$23,7,FALSE).

    I've attached the spreadsheet and highlighted the columns in question.

    Struggles:
    - retrieving a different value from the VLOOKUP formula when there is a different value the field blanks
    - how to calculate the mean of the values from Vlookup.

    Hopefully this makes sense. I know theres a way to do this.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    993

    Re: Vlookup and mean formulas

    Hi Megnarium,

    I'm not 100% sure of your query, but the attached pulls the fibre count from col I into col L when col C is 'Field Blank'. Cell I24 then calculates the average of these values. Is that what you're after or do you want to exclude rows 22 and 23 until you have a sample for them? In which case you could use AVERAGEIFS.

    Please Login or Register  to view this content.
    Regards,

    Snook

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,141

    Re: Vlookup and mean formulas

    Are you looking for the AVERAGEIFS() function? =AVERAGEIFS($I$7:$I$23,$C$7:$C$23,"Field Blank")
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    08-07-2019
    Location
    Alberta
    MS-Off Ver
    Office 360 for Mac
    Posts
    9

    Re: Vlookup and mean formulas

    Hi

    Thank you for your reply! I might be looking for the AverageIFS function, I will have to see what it does. I don't always know what cells the field blanks will be in. They will change with every job I do. This is a sheet we would use mulitple times a day for different projects.

    I need to calculate the mean of the field blanks (this increases as the job goes on; the requirement is 2 blanks or 10% of the total number of samples whichever is greater)

    Does that make sense?

    The averageifs function is close, but I probably didn't explain it correctly. I need to calculate the mean of the blanks.

    So the long goal of what I need is as follows:
    Calculate and report fiber density on the filter, (fibers/mm²), by dividing the average fiber count
    per graticule field, minus the mean field blank count per graticule field, by the graticule
    field area, (approx. 0.00785 mm²)

    Density = ((I7/K7)-(mean of field blanks; Column L/total of Column K (only when used)) / 0.00785

    So I am trying to get a column that recognizes and populates the MEAN (NOT AVG) when I input field blanks.

    For the spread sheet attached here the mean for field blanks is (5+3)/200 = 0.04

    Does that make sense?
    Attached Files Attached Files
    Last edited by Megnarium; 08-20-2024 at 08:12 PM.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,141

    Re: Vlookup and mean formulas

    It looks like a weighted average then? More of a SUMIFS() function then? =SUMIFS($I$7:$I$23,$C$7:$C$23,"Field Blank")/SUMIFS($K$7:$K$23,$C$7:$C$23,"Field Blank")

    SUMIFS() help file: https://support.microsoft.com/en-us/...6-611cebce642b

  6. #6
    Registered User
    Join Date
    08-07-2019
    Location
    Alberta
    MS-Off Ver
    Office 360 for Mac
    Posts
    9

    Re: Vlookup and mean formulas

    so far that is working awesome! Thank you. I didn't know that was the formula I needed. haha

+ 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] Converting VLOOKUP and IF Formulas to Array CSE Formulas
    By truk2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2018, 04:34 AM
  2. help VLOOKUP() OR SOME FORMULAS
    By STFViata in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-29-2013, 07:36 AM
  3. Possible Formulas (IF or VLOOKUP??)
    By kmarees1986 in forum Excel General
    Replies: 4
    Last Post: 11-23-2011, 08:20 AM
  4. Help with vlookup formulas
    By geebo79 in forum Excel General
    Replies: 3
    Last Post: 05-24-2010, 04:02 PM
  5. Vlookup formulas
    By afathi in forum Excel General
    Replies: 1
    Last Post: 04-23-2007, 11:40 PM
  6. VLOOKUP and formulas help
    By FurRelKT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2006, 05:05 PM
  7. VLOOKUP FORMULAS
    By PB in forum Excel General
    Replies: 1
    Last Post: 11-24-2005, 06:45 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