+ Reply to Thread
Results 1 to 15 of 15

Date in Text Format - Average to be plotted.

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Date in Text Format - Average to be plotted.

    Hello Friends

    Please find the attached file.

    Date is in text format, but i want to calculate the average for the given month in yellow cells.

    Thanks in advance

    thilag
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    By using Text format date - Day averages to be plotted

    Hello Friends

    Please find the attached file.

    In that file the day in text format and values are plotted, i want to calculate the day average by formula.

    thanks in advance.

    thilag
    Attached Files Attached Files

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Date in Text Format - Average to be plotted.

    Hi,

    Please see the attached file.

    Regards,
    Chandra
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date in Text Format - Average to be plotted.

    Hello


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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Date in Text Format - Average to be plotted.

    In E1 Cell

    =SUMPRODUCT((TEXT($A$1:$A$16,"MMM-YY")=TEXT(D1,"MMM-YY"))*$B$1:$B$16)/SUMPRODUCT(--(TEXT($A$1:$A$16,"MMM-YY")=TEXT(D1,"MMM-YY")))

    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: By using Text format date - Day averages to be plotted

    Hi,

    I have updated the formula in the attached file.

    Regards,
    Chandra
    Attached Files Attached Files

  7. #7
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Date in Text Format - Average to be plotted.

    Or if you prefer an array

    =AVERAGE(IF((VALUE(MID($A$1:$A$16,4,2))=MONTH(D1))*(VALUE(20&RIGHT($A$1:$A$16,2))=YEAR(D1)),$B$1:$B$16,""))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  8. #8
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: By using Text format date - Day averages to be plotted

    hi thilag. if your computer date settings is DMY, then it would be easier. assuming you don't wish to convert the text & simply use formulas, sat would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


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


    this will of course fail in computers with date settings as m/d/y. then you would have to use the LEFT, MID & RIGHT like you did.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  9. #9
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Date in Text Format - Average to be plotted.

    Hello cbatrody, Hello Fotis1991, Hello Sixth Sense, Hello Sweep

    Thanks to you for your immediate reply.

    hello cbatrody
    You used helper cells.

    hello Fotis1991
    I tried tour formula as Non Array and array formula.
    It shows #VALUE! in both cases

    hello Sixth Sense
    your formula shows 90 (for 40 Feb-14), 140 (For 100 Mar-14) and #DIV/0! (for 145 Apr-14)

    hello sweep

    Your formula works very fine.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date in Text Format - Average to be plotted.

    4 people in 2 diferent(your owns thread) try to help you!!

    No respect to their effords and their time, posting duplicate threads(and not even a feed back untill now)!

    Speaking seriously
    i tell you that next time that you'll do this, you'll be a banned user!!

    I'll merge the 2 threads now!

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: By using Text format date - Day averages to be plotted

    =SUM(INDEX((TEXT($A$1:$A$100,"dddd")=$F5)*($B$1:$B$100),0))/SUM(INDEX((TEXT($A$1:$A$100,"dddd")=$F5)*1,0))
    try this formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date in Text Format - Average to be plotted.

    And my formula works ok.....
    Attached Files Attached Files

  13. #13
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Date in Text Format - Average to be plotted.

    Without the helper column.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Date in Text Format - Average to be plotted.

    Hello Fortis1991
    I really surprised about your merging of the 2 threads.

    My two treads are entirely different

    1) is calculating average for the given months from the dates (in text Format) and their values.
    2) is calculating average for the all the days (Sunday to Saturday) from the dates (in text Format) and their values.

    Given Month & all days (Sunday to Saturday) are different then obviously I have to post 2 threads according to forum rules.
    And I did it even it is little bit difficult to post 2 post instead making it in a single post.

    thilag

  15. #15
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Date in Text Format - Average to be plotted.

    Hello Friends

    Please refer the attached file.

    If we put the date in Column A in Text Format (Any time adding at bottom) then the values for the given days should be updated in the Cells G1 to G7 (Corrsponding days are given in F1 to F7.

    thanks

    thlag
    Attached Files Attached Files

+ 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. Excel:How change the textbox format from text to date format?
    By inpetto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2013, 08:23 AM
  2. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  3. Cannot convert date (which is in text format) to date in numeric format
    By geniuspro in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-19-2012, 09:21 AM
  4. Replies: 2
    Last Post: 10-02-2010, 04:41 AM
  5. [SOLVED] plotted Average
    By Micayla Bergen in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-15-2005, 08: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