Closed Thread
Results 1 to 9 of 9

IF Function HELP!!!!!!!!!

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    Tulsa
    MS-Off Ver
    Excel 2003
    Posts
    3

    IF Function HELP!!!!!!!!!

    I collect data daily from 2005 to Present, when I collect the data I get the Date and the Price. I would create a simple table the 12 months by the year and have to manually type =average(cells) tooo many times. I have been looking online to figure out how I could do this easier, but I can't seem to get a simple answer.

    So if I have column A: And Column B has the numbers for that day. Can someone help me figure out a simple IF function or something that would give me the averages for each individual month?

    1/2/2009
    1/5/2009
    1/6/2009
    1/7/2009
    1/8/2009
    1/9/2009
    1/12/2009
    1/13/2009
    1/14/2009
    1/15/2009
    1/16/2009
    1/20/2009
    1/21/2009
    1/22/2009
    1/23/2009
    1/26/2009
    1/27/2009
    1/28/2009
    1/29/2009
    1/30/2009
    2/2/2009
    2/3/2009
    2/4/2009
    2/5/2009
    2/6/2009
    2/9/2009

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: IF Function HELP!!!!!!!!!

    I don't think anyone will be able to help you until you amend that title - read the Forum Rules at the top of the screen to find out why. Your title should describe what you want to achieve.

    Pete

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF Function HELP!!!!!!!!!

    Hi,

    A Pivot Table would be really ideal for this.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    06-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: IF Function HELP!!!!!!!!!

    Hi Pete,
    You could try using AverageIF function - If you break out the month and year and concatenate the month and year in a column right next to your date, then use AverageIf.

    Assuming your first row of data in in Row 3 and your dates in are in column A, price in column B, put the formula to concatenate in column C (=+MONTH(A3)&"-"&YEAR(A3) ) and the averageif (=+AVERAGEIF(C:C,C3,B:B)) in column D, then drag this down to alll rows and your average will populate for that month on each row. If you only wanted to see the average on the last row of data for that month then you could incorporate an IF statement. Hope this helps!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: IF Function HELP!!!!!!!!!

    Quote Originally Posted by Milyssa510 View Post
    Hi Pete, ...
    I don't need to know how to do it !!

    Pete

  6. #6
    Registered User
    Join Date
    06-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: IF Function HELP!!!!!!!!!

    My applogies I ment to put Hi Tulsa, which I didnt realize until after I posted - I didnt mean to insult you.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: IF Function HELP!!!!!!!!!

    No insult taken. Let the OP change the title before you offer any more help.

    Pete

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: IF Function HELP!!!!!!!!!

    mods please the op has reposted here http://www.excelforum.com/excel-form...al-months.html
    instead of changing this thread, a genuine mistake i think
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: IF Function HELP!!!!!!!!!

    Thanks Martin. I will close this thread now, You can continue on you're new thread. For future reference, all you need to do is change the thread title, no need to create a new thread...

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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