Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: Excel help - converting date to text

  1. #21
    Join Date
    Feb 2007
    Location
    Perth
    Posts
    3,918
    Total Downloaded
    0
    Quote Originally Posted by Mick_Marsh View Post
    You misunderstand.
    I wish to sum the numerics from H62 to V62 on the sheet that has the name as displayed in B6.

    B6 is text 00-00-00 that is converted from the numeric formatted as date 00/00/00 in B2.
    In that case

    =SUM(INDIRECT("'"&B6&"'!H62:V62"))

    Note that there are single quotes here, enclosed by double quotes. So, assuming the contents of cell B6 is 00-00-00 then INDIRECT("'"&B6&"'!H62:V62") resolves to the string '00-00-00'!H62:V62 which becomes the argument of the SUM function.

    If you make the contents of cell B6 the string '00-00-00' (note: single quotes) rather than just 00-00-00 (note: no quotes) then you can simplify everything to just

    =SUM(INDIRECT(B6&"!H62:V62"))
    2024 RRS on the road
    2011 D4 3.0 in the drive way
    1999 D2 V8, in heaven
    1984 RRC, in hell

  2. #22
    Homestar's Avatar
    Homestar is offline Super Moderator & CA manager Subscriber
    Join Date
    Aug 2010
    Location
    Sunbury, VIC
    Posts
    20,105
    Total Downloaded
    0
    Good to see some Excel genius's here - I may be calling on you all at some stage...
    If you need to contact me please email homestarrunnerau@gmail.com - thanks - Gav.

  3. #23
    Boxhead63 Guest

    Works for me

    Quote Originally Posted by Homestar View Post
    Highlight the box or boxes, right click then click 'format cells'. In the category list there is 'text'. Click on this, then 'ok'. What you type in that box now will be as you hit the keys.
    Well it sorted out the same issue i have been having. I have done 2 Excel courses and didn't use them for a while and now i use them every night and have had a struggle with the formatting. Who said you won't learn anything on AULRO.

    Cheers
    Rob

  4. #24
    Join Date
    Nov 2009
    Location
    Western Victoria
    Posts
    14,101
    Total Downloaded
    0
    I have had no success.

    Here, have a play.
    Attached Files Attached Files

  5. #25
    Join Date
    Feb 2007
    Location
    Perth
    Posts
    3,918
    Total Downloaded
    0
    In cell N6 on sheet "Summary 2013-2014" paste formula

    =SUM(INDIRECT("'"&G6&"'!"&P6))

    Answer is 500
    2024 RRS on the road
    2011 D4 3.0 in the drive way
    1999 D2 V8, in heaven
    1984 RRC, in hell

  6. #26
    Join Date
    Aug 2006
    Location
    Melbourn(ish)
    Posts
    26,504
    Total Downloaded
    0
    Whats screwing you up is the date is representing as a number entered in the numeric format from way back when in 1900

    Excel is not calculating your date with the value of 30/3/14 its using 41728.
    What you want it to look for is the 30/03/14 in the sheet tab title.

    in theory if you make the cell format a custom date presentation 30-03-14 isnt available in my version. Then use the =text function and that works.

    unless you have a version of excel thats 2007 or newer, or an updated version of 98/2000 then to do what you want you have to do it with a macro.. Theres a few cut and pasteable ones on the interweb.

    Converting Numbers to Strings (Microsoft Excel) theres the simplest way I could find to do it for you.
    Dave

    "In a Landrover the other vehicle is your crumple zone."

    For spelling call Rogets, for mechanicing call me.

    Fozzy, 2.25D SIII Ex DCA Ute
    Tdi autoManual d1 (gave it to the Mupion)
    Archaeoptersix 1990 6x6 dual cab(This things staying)


    If you've benefited from one or more of my posts please remember, your taxes paid for my skill sets, I'm just trying to make sure you get your monies worth.
    If you think you're in front on the deal, pay it forwards.

  7. #27
    Join Date
    Jun 2010
    Location
    Central Coast NSW
    Posts
    1,888
    Total Downloaded
    0
    Quote Originally Posted by Ferret View Post
    In cell N6 on sheet "Summary 2013-2014" paste formula

    =SUM(INDIRECT("'"&G6&"'!"&P6))

    Answer is 500
    And in J6 use this formula

    =INDIRECT("'"&G6&"'!W38")

    INDIRECT is a pain to use. You need to use it within other excel functions in order to replicate the text as if you typed it yourself. Something that I've found useful is to click on the "Formula" tab in excel and click the "insert function" button in the left of the ribbon. It will then give you a real time output of what you're entering will look like. You can then insert that within your excel function, just like Ferret has done. You may need more than one INDIRECT Function within a cell, depending on how complicated your cell equation is. For example, the following cell text:

    =CEILING(N5+INDIRECT("'"&I1&"'!R4")-INDIRECT("'"&I1&"'!R5")-0.05,0.25)

    would be equivalent to:

    =CEILING(N5+'19 Aug'!R4-'19 Aug'!R5-0.05,0.25)

    if Cell "I1" contained the text "19 Aug".

    Cheers

    Dan

  8. #28
    Join Date
    Nov 2009
    Location
    Western Victoria
    Posts
    14,101
    Total Downloaded
    0
    Quote Originally Posted by Ferret View Post
    In cell N6 on sheet "Summary 2013-2014" paste formula

    =SUM(INDIRECT("'"&G6&"'!"&P6))

    Answer is 500
    Thanks Ferret.
    This worked a treat.

    Initially it didn't work as I cut and pasted the formula. I had to retype the formula.

  9. #29
    Join Date
    May 2014
    Location
    Tamworth NSW
    Posts
    4,295
    Total Downloaded
    0
    When something goes wrong in excel...

    -Mitch
    'El Burro' 2012 Defender 90.

Page 3 of 3 FirstFirst 123

Bookmarks

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 AULRO.com ONLY!
Search All the Web!