• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • SALE 20% Off All Courses
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Formula help needed!|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Formula help needed!|General Excel Questions & Answers|Excel Forum|My Online Training Hub
                    BLACK FRIDAY SALE 20% OFF ALL COURSES
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Formula help needed!
sp_PrintTopic sp_TopicIcon
Formula help needed!
Avatar
Simone Evans

New Member
Members
Level 0
Forum Posts: 1
Member Since:
November 5, 2019
sp_UserOfflineSmall Offline
1
November 5, 2019 - 3:50 am
sp_Permalink sp_Print

Hi all, 

I am looking for some help with 2 formulas please, first I need to work out the difference in the XyXm format between the information in the column SA against AA.   So for this versions 39y4m - 36y4m, but I need this in in formula to be able to copy it for all pupils.  The AA is a formula I input based on the dated 20/08/2019 - 29/03/1983 and then SA  is manual input based on a test from another system that I manual transfer across.

Pupil Date of Birth August 20/08/2019
dd/mm/yyyy AA SA DIFF
Simone Evans 29/03/1983 36y4m 39y4m I need help here!
         
         

This test will be conducted 4 times over the year, so my second formula I would like to add is the impact from the second time this test is conducted.  I know there AA and SA would need to be calculated, but we would also need to take into account the difference from the August test.

Pupil Date of Birth August 20/08/2019 Nov 15/11/2019
dd/mm/yyyy AA SA DIFF AA SA I
Simone Evans 29/03/1983 36y4m 39y4m formula 1 36y10m 39y11m ????
               
               

 

I hope this makes sense!  Please ask any questions.

 

Thanks,  Simone 

Avatar
Catalin Bombea
Iasi, Romania
Member
Dashboards

Power Query

Power Pivot

Xtreme Pivot Tables

Excel for Decision Making

Excel for Finance

Excel Analysis Toolpak

Power BI

Excel

Word

Outlook

Excel Expert

Excel Customer Service
Level 10
Forum Posts: 1864
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
November 6, 2019 - 5:35 am
sp_Permalink sp_Print sp_EditHistory

Hi Simone,

It makes sense, but not too much I'm afraid, mixing text with calculations is usually a bad choice.

The difference can be calculated with a formula like this:

=LEFT(B1,FIND("y",B1)-1)+SUBSTITUTE(RIGHT(B1,LEN(B1)-FIND("y",B1)),"m","")/12-(LEFT(A1,FIND("y",A1)-1)+SUBSTITUTE(RIGHT(A1,LEN(A1)-FIND("y",A1)),"m","")/12)

As you can see, it's not easy to break the text to make calculations, you should use numbers and format them to display in other formats.

39.3333 is 39+4/12, can be displayed as 39 y 4/12 m with this custom format: ## "y" #/12 "m"

The cell holds a real numeric value that you can make calculations with, much easier in next calculations.

Avatar
kondempudi satyaharigopal

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
June 16, 2013
sp_UserOfflineSmall Offline
3
November 8, 2019 - 11:09 pm
sp_Permalink sp_Print

Simone Evans said
Hi all, 

I am looking for some help with 2 formulas please, first I need to work out the difference in the XyXm format between the information in the column SA against AA.   So for this versions 39y4m - 36y4m, but I need this in in formula to be able to copy it for all pupils.  The AA is a formula I input based on the dated 20/08/2019 - 29/03/1983 and then SA  is manual input based on a test from another system that I manual transfer across.

Pupil Date of Birth August 20/08/2019
dd/mm/yyyy AA SA DIFF
Simone Evans 29/03/1983 36y4m 39y4m I need help here!
         
         

This test will be conducted 4 times over the year, so my second formula I would like to add is the impact from the second time this test is conducted.  I know there AA and SA would need to be calculated, but we would also need to take into account the difference from the August test.

Pupil Date of Birth August 20/08/2019 Nov 15/11/2019
dd/mm/yyyy AA SA DIFF AA SA I
Simone Evans 29/03/1983 36y4m 39y4m formula 1 36y10m 39y11m ????
               
               

 

I hope this makes sense!  Please ask any questions.

 

Thanks,  Simone   

DATEDIF FUNCTION

DATE MUST IN THE FORMAT : MM/DD/YYYY

DATE1-LAST DATE

DATE2-PRESENT DATE

CASE-I

DATEDIF(DATE1,DATE2,Y)

Note:- date1 to date2 count of no of years.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: El Riz, Tracy Lippiatt, Hannah Spink
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Catalin Bombea: 1864
SunnyKow: 1432
Anders Sehlstedt: 886
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 241
Hans Hallebeek: 222
Jessica Stewart: 219
A.Maurizio: 213
Newest Members:
Karen Childress
Ben Penney
Karen Quagliano
Natsuko Kojima
George Girhiny
Jack Ennis
Andrew Griffin
Mostafa Younes
Alan Lim
ken lee
Forum Stats:
Groups: 3
Forums: 24
Topics: 6637
Posts: 29114

 

Member Stats:
Guest Posters: 49
Members: 33046
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.