+ Reply to Thread
Results 1 to 7 of 7

formula to check numerical data between two columns not working when starts with a zero

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    formula to check numerical data between two columns not working when starts with a zero

    I have a sheet to check first 6 digit column A against column D which has 8 digits.

    the issue are the digits starting with 012345 with 01234567 give me no match or should read match but those starting with 1 to 9 first digit as first digit works .

    Tried formating still the same

    the formula used

    Can anyone assist what is going wrong.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: formula to check numerical data between two columns not working when starts with a z

    Removed by JT

  3. #3
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: formula to check numerical data between two columns not working when starts with a z

    Maybe

    =IFERROR(IF(LEFT(A2,6)=LEFT(D2,6),"CONFIRM","DOES NOT MATCH"),"DOES NOT MATCH")

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

    Re: formula to check numerical data between two columns not working when starts with a z

    Try this instead:

    =IFERROR(IF(LEFT(D2,6)=A2,"CONFIRM","DOES NOT MATCH"),"DOES NOT MATCH")

    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.

  5. #5
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: formula to check numerical data between two columns not working when starts with a z

    you want confirm in all the yellow columns?

  6. #6
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: formula to check numerical data between two columns not working when starts with a z

    @ALIGW ,it worked those with 0 but with those starting with digit 1 shows does not match which is not true

    @ROOT_ your formula worked .thank you
    Attached Files Attached Files

  7. #7
    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,981

    Re: formula to check numerical data between two columns not working when starts with a z

    That's because A28-A31 are stored as numbers, not text., so it causes a mismatch. Use the evaluate formula feature to see this.

+ 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. Replies: 1
    Last Post: 10-15-2014, 08:42 AM
  2. [SOLVED] check if name of series starts with a number
    By tmallin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2014, 09:00 AM
  3. Formula to check two columns of data and reply yes if all the same
    By dbmrexcel1981 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2014, 10:26 AM
  4. Formula to check unique values based on data from 2 columns
    By notsobrilliant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2013, 04:15 PM
  5. Check if cell starts with certain character
    By ericc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2010, 04:47 PM
  6. check if a Cell value starts with a Letter
    By vijay2482 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2009, 09:53 AM
  7. Replies: 1
    Last Post: 09-14-2006, 10:16 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