+ Reply to Thread
Results 1 to 4 of 4

Compare formula result to another cell

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Compare formula result to another cell

    I have the attached workbook which contains a column with a date in, a column with a time in and a column which concatenates them into one. I have another column with a date & time in together and I want to compare the concatenated column with this one to highlight any differences.

    I can get it to work if I do the concatenation formula then paste it values only and then press enter in the cell to convert the result to date and time but this won't be feasible for the amount of data I will need to do this on, any thoughts on how I can make this work just from the result of the concatenated formula?
    Attached Files Attached Files

  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,777

    Re: Compare formula result to another cell

    In E2 copied down:

    =A2+B2

    In D2 copied down:

    =C2=E2
    Attached Files Attached Files
    Last edited by AliGW; 09-15-2022 at 08:06 AM. Reason: Added example workbook.
    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
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Compare formula result to another cell

    Perfect thanks AliGW, I was using the & rather than the + and it wouldn't' work! so simple!

  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,777

    Re: Compare formula result to another cell

    You need to add the two values, as dates are integers and times the decimal part.

    Thanks for the rep.

+ 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. [SOLVED] formula to return Yes or No(compare) from a Vlookup result.
    By mente73 in forum Excel General
    Replies: 2
    Last Post: 03-02-2020, 10:35 AM
  2. [SOLVED] Need Help with a Formula to compare and give desired result
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2018, 01:55 PM
  3. [SOLVED] compare two col and place result in cell
    By gilnic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2016, 05:37 AM
  4. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  5. [SOLVED] Compare data in column result in row as yes or no formula
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 05:45 AM
  6. Need a formula to lookup, compare, provide result
    By dklein2149 in forum Excel General
    Replies: 1
    Last Post: 02-06-2009, 12:55 AM
  7. [SOLVED] Compare cell = one result
    By Aaron Saulisberry in forum Excel General
    Replies: 7
    Last Post: 01-23-2006, 12:55 AM

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