EXCEL - if cell does not contain specific text, formula?

Anonymous
2024-08-15T23:56:30+00:00

Hello. What is the formula I should use to find cells in column A that contain 'accounts'. If YES, column B would be a blank cell. If NO, A would repeat in column B.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-08-16T09:10:22+00:00

    Hello OHRW03,

    Welcome to the Microsoft Community.

    Have a try for this formula:

    =IF(ISNUMBER(SEARCH("accounts", A1)), "", A1)

    Note: A1 is my assumed cell of your source text, from your image it seems Row 1 is a title and your data starts from Row 2. You can replace it with your actual cell.

    This formula checks if the word ‘accounts’ is present in each cell of column A. If it is, it leaves the corresponding cell in column B blank. If not, it repeats the content from column A into column B.

    Here’s a step-by-step guide:

    1. Select cell B1.
    2. Enter the formula=IF(ISNUMBER(SEARCH("accounts", A1)), "", A1).
    3. Press Enter.
    4. Drag the fill handle (a small square at the bottom-right corner of the cell) down to apply the formula to other cells in column B.

    This should give you the desired result as shown in your image.

    Should any uncertainties arise subsequently, please feel free to seek assistance once again.

    Best Regards,

    William.Y | Microsoft Community Support Specialist

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-10-21T12:59:04+00:00
    A B C D E F G
    Paul P A U L
    Peter P E T E R
    James J A M E S
    what formula can I use whenever a name change in A the spelling will automatically changed
    0 comments No comments
  3. Anonymous
    2024-10-21T13:05:23+00:00

    it did not work

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-10-21T14:01:39+00:00

    =MID(A2,SEQUENCE(,LEN(A2)),1)

    or

    =UPPER(MID(A2,SEQUENCE(,LEN(A2)),1))

    Image

    1 person found this answer helpful.
    0 comments No comments