+ Reply to Thread
Results 1 to 10 of 10

Read formula

  1. #1
    Registered User
    Join Date
    07-15-2019
    Location
    London
    MS-Off Ver
    MS Office 2007
    Posts
    31

    Read formula

    Hello everyone,

    Can anyone please help me, how to read these 2 formulas and what they're basically doing?

    1.Created Date
    =IF(ISERROR(DATE(LEFT(B2,4),MID(B2,6,2),MID(B2,9,2))),DATE(MID(B2,7,4),MID(B2,4,2),LEFT(B2,2)),DATE(LEFT(B2,4),MID(B2,6,2),MID(B2,9,2)))

    2.Time
    =TIME(MID(F2,12,2),MID(F2,15,2),0)


    Thanks in advance!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Read formula

    Welcome to the forum

    1. A date is being constructed from the contents of B2. the first four characters in that cell are the year, characters at position 6 and 7 are the month and characters at position 9 and 10 are the day.

    DATE(LEFT(B2,4),MID(B2,6,2),MID(B2,9,2)))

    If that produces an error, it is using this formula: DATE(MID(B2,7,4),MID(B2,4,2),LEFT(B2,2))

    In this case, the year is characters 7-10, the month is characters 4 and 5 and the day is the first two.

    2. In the same vein as 1 above, this is creating a time.

    TIME(MID(F2,12,2),MID(F2,15,2),0)

    Characters 12 and 13 are the minutes and 15 and 16 are the seconds (or hours and minutes respectively, depending on the cell formatting).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-15-2019
    Location
    London
    MS-Off Ver
    MS Office 2007
    Posts
    31

    Re: Read formula

    Hi Ali,

    Thank you for being so fast and correct. This is really helpful.
    I also have 2 more formulas where I need help.. and could you please inform me more about these 'Points'?
    I want to have some but I don't have it clear how and where do I use them..


    1.Stage Start
    =IF(ISERROR(DATE(LEFT(F2,4),MID(F2,6,2),MID(F2,9,2))),DATE(MID(F2,7,4),MID(F2,4,2),LEFT(F2,2)),DATE(LEFT(F2,4),MID(F2,6,2),MID(F2,9,2)))


    2.Stage End
    =IF(I2=1,"",K3)



    Thank you much!!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Read formula

    I have no idea how and where you will need to use these without sight of your data!

    1. Same principle as number 1 in my first answer.

    2. If cell I2 is equal to 1, return a blank, otherwise return the value of cell K3.

    This one's pretty basic.

  5. #5
    Registered User
    Join Date
    07-15-2019
    Location
    London
    MS-Off Ver
    MS Office 2007
    Posts
    31

    Re: Read formula

    Well yes, I thought I know a little bit of excel but after I saw this what I'm working on, I doubt it!!
    I have like 10-15 sheets, and 800 formulas (exaggerating!), all linked to another one and I can find myself lost even in these little simply ones.

    Thank you for your help, I appreciate!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Read formula

    Firstly, please keep everything here in one place.

    However, don't bombard us with formulae, many of which are very similar. You have a duty here to try to apply what we are telling you to interpret the other formulae. We need to see that you have tried - don't just present us with a huge list and expect a translation of each.

    There is the Evaluate Formula feature on the Formulas ribbon in Excel that you can use to help you with this.

  7. #7
    Registered User
    Join Date
    07-15-2019
    Location
    London
    MS-Off Ver
    MS Office 2007
    Posts
    31

    Re: Read formula

    Sorry to disturb this much, but I thought I can get some help in here.
    I was doing this Performance Measurement for a while.. I don't know how to use excel but I was doing this with a manual.. (export data, put everything in it's place and so). Now we have a new employee and I have to explain what she is supposed to do, but I cannot read these formula to her.

    If this is not the right place here to ask, my apology!
    Thank you!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Read formula

    You are not disturbing and yes, you can get help. But in return, we expect you to try to understand the help you are being given.

    You will not be able to explain these formulae to your employee if you don't understand them. It's not simply a case of 'reading' them. In your other closed thread you presented us with a long list of formulae, many of which were very similar. Expecting someone here to 'translate' all of them for you is not going to get you any further forward than you are now.

    What I would advise is this: have a look at the formulae you still need to understand. Run them through the Evaluate Formula feature and see what you can work out that way.

    It's a bit like learning a language: you can run anything through Google translate, but it won't help you with the next sentence you have to decipher.

    I hope this explains the approach I am taking with you on this.

  9. #9
    Registered User
    Join Date
    07-15-2019
    Location
    London
    MS-Off Ver
    MS Office 2007
    Posts
    31

    Re: Read formula

    Thank you much Ali

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Read formula

    No worries. One step at a time.

+ 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. Want to keep the Read Only message from appearing when read only file is opened
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2019, 09:33 AM
  2. [SOLVED] Create Macro that asks for read only or read-write access
    By evanneedshelp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2018, 08:07 AM
  3. Replies: 1
    Last Post: 07-10-2016, 02:27 PM
  4. Open workbook in read only or read write for excel 2010 version
    By Agent1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2014, 07:19 PM
  5. [SOLVED] Checking to see if a file has been opened in Read/Write or Read Only
    By brokenbiscuits in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 09:16 AM
  6. How to read formula result for calculation of another formula?
    By Shad0wguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2013, 02:15 PM
  7. Replies: 7
    Last Post: 06-20-2006, 05:56 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