+ Reply to Thread
Results 1 to 5 of 5

What does this function means?

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    What does this function means?

    =((VLOOKUP(A5,Target!$A:$N,MATCH("PriorYearAvg",Target!$A$1:$N$1,0),0))-(((VLOOKUP(A5,Target!$A:$N,MATCH("Target Steps",Target!$A$1:$N$1,0),0)))*MONTH(C2)))/4


    from what im reading this function is using A5 to scan for identical field from the target sheets.

    Putting it in math terms:

    (Taking the PriorYearAvg - Target Steps) *CurrentMonths number/4??

    I think im reading it wrong because the result of my formula is different from what i translated myself.

    Please advise.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: What does this function means?

    Broken in hals at the red MINUS sign
    =((VLOOKUP(A5,Target!$A:$N,MATCH("PriorYearAvg",Target!$A$1:$N$1,0),0))-(((VLOOKUP(A5,Target!$A:$N,MATCH("Target Steps",Target!$A$1:$N$1,0),0)))*MONTH(C2)))/4

    =((VLOOKUP(A5,Target!$A:$N,MATCH("PriorYearAvg",Target!$A$1:$N$1,0),0))-

    It is looking on the Target tab at Column A for a value matching A5. It is returning the "PriorYearAvg" column for the row matching the value in A5.

    ---------------------------

    (((VLOOKUP(A5,Target!$A:$N,MATCH("Target Steps",Target!$A$1:$N$1,0),0)))*MONTH(C2)))/4

    It is then looking for A5 in that same Target!$A:$N are and bringing back the value in the Target Steps column on the row A5 is found. It is multiplying that value by the Month Number in the date in C2, then dividing by 4. The resulting value is subtracted from result of the first part of the formula
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    Re: What does this function means?

    for example if the prior year avg = to 785.58 and target steps =32.7325 month =8

    What I did was

    (785.58-32.7325) *8 =6022
    then 6022/4 = 1505

    Is that inccorect because the formula answer gave me 172

    maybe i dont understand the formula complete...thanks for your help

  4. #4
    Registered User
    Join Date
    09-01-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    4

    Re: What does this function means?

    I have a Learning difficulty called Dyscalculia, this is basicaly the number form of dyslexia, and I have a servere form of it so I can not do basic maths with out a calculator. But just looking at the numbers given (784.58 -32.7325) *8 -6022 THAN 6022/4 - 1505
    I can see how that would probibly be a three digit figure.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: What does this function means?

    Notice that:
    1. (Taking the PriorYearAvg - Target Steps) *CurrentMonths number/4
    Is not the same as:
    2. ((Taking the PriorYearAvg - Target Steps) *CurrentMonths number)/4

    In #1 (your translation) you are multiplying the difference by one fourth of the current month's value..
    In #2, the original, the difference is multiplied by the current month's value and the resulting product divided by four.
    Ben Van Johnson

+ 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. comparing means by means of Least Significant Differences (LSD) method
    By rmrf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2013, 12:14 PM
  2. Finding Means
    By maurof in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-10-2010, 02:57 PM
  3. On B3 a formula is used, what it means, ??
    By Anzar in forum Excel General
    Replies: 3
    Last Post: 01-06-2008, 09:16 AM
  4. what it means in a range (B:B)
    By starguy in forum Excel General
    Replies: 2
    Last Post: 04-12-2006, 08:10 AM
  5. [SOLVED] " " means in IF function
    By Sorue in forum Excel General
    Replies: 2
    Last Post: 06-12-2005, 04: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