+ Reply to Thread
Results 1 to 12 of 12

Check data by formula

  1. #1
    Registered User
    Join Date
    01-02-2022
    Location
    bangkok
    MS-Off Ver
    365
    Posts
    59

    Check data by formula

    I will check data in column AL and column AM.

    If column AL have text & column AM not have text ----> column AN write text from Column AL

    else column AL have text & column AM have text ----> column AM write text from Column AM

    column AL not have text & column AM have text ----> column AM write text from Column AM

    Now I use formula as below.
    But true some rows

    =IF(ISTEXT(AM2),AM2,IF(ISTEXT(AL2),AL2,""))
    Please guide me about it.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Check data by formula

    There are some values in the empty cells in Column AM.

    Select the empty cells and press delete for once

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Check data by formula

    Try this:

    =IF(AM2="",AL2,AM2)

    copied down
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    01-02-2022
    Location
    bangkok
    MS-Off Ver
    365
    Posts
    59

    Re: Check data by formula

    From your formula, If column AL have text & column AM have text (-) ----> column AN write text from Column AL.

    Please guide me for solve it.
    Attached Images Attached Images
    Attached Files Attached Files

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Check data by formula

    Try

    =IF(AL2>="a",AL2,AM2)

  6. #6
    Registered User
    Join Date
    01-02-2022
    Location
    bangkok
    MS-Off Ver
    365
    Posts
    59

    Re: Check data by formula

    For your formula some row that correct but some row not correct (Because some column first character have blank)


    Please guide me for solve it.
    Attached Images Attached Images
    Attached Files Attached Files

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Check data by formula

    Last try

    =IF(TRIM(AL2)>="a",TRIM(AL2),TRIM(AM2))

  8. #8
    Registered User
    Join Date
    01-02-2022
    Location
    bangkok
    MS-Off Ver
    365
    Posts
    59

    Re: Check data by formula

    No, Correct.
    Some rows as false.

    Example row 4 and row 11. Data in column AM have data but in column AN write data from AL.

    Please guide me for solve it.
    Attached Images Attached Images
    Attached Files Attached Files

  9. #9
    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
    81,102

    Re: Check data by formula

    Try this:

    =IF(OR(AM2="",AM2="-"),TRIM(AL2),TRIM(AM2))
    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.

  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
    81,102

    Re: Check data by formula

    Marked as solved - any feedback? Like "thank you", for example?

    EDIT: No, nothing. All one-way traffic here.
    Last edited by AliGW; 01-17-2022 at 06:48 AM.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Check data by formula

    In response to duplicate thread …

    Maybe, untested:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  12. #12
    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
    81,102

    Re: Check data by formula

    The OP will need to continue here on his return. Unfortunately, he has spent today ignoring our rules and moderation, so has been given a holiday.

+ 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: 3
    Last Post: 09-29-2020, 06:54 PM
  2. Replies: 7
    Last Post: 02-12-2016, 01:54 PM
  3. [SOLVED] Help with Formula to check data
    By Pi* in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2014, 07:53 PM
  4. Formula To Check Data By Date
    By Angnz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2013, 12:03 PM
  5. [SOLVED] Formula to check if cell contains any data.
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 10-02-2013, 11:03 PM
  6. Replies: 11
    Last Post: 02-10-2011, 08:13 AM
  7. Formula to Check for Data
    By karl_009 in forum Excel General
    Replies: 9
    Last Post: 04-16-2010, 08:35 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