Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1042399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:30:11+00:00 2026-05-16T15:30:11+00:00

I have a problem in Excel 2007. I need to compare one value –

  • 0

I have a problem in Excel 2007. I need to compare one value – letter “C” – to a range of cells that are on one row. The problem is that the values should be in every other cell.

So if I have a row like this – C 434 C 324 C 3453 – it should say in a cell in the end – OK
And if I have a row like this – C 22 B 665 C 8877 – it should say – error as not all are C’s.

Should be done as a formula not VBA.

So the question is is it possible to check if every other cell in a row ( a range ) contains a value C and output a value based on that.

PS! There are too many rows to do it by hand like this (pseudocode)
=IF(AND(A1=”C”; A3=”C”);”ok”;”error”)

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:30:11+00:00Added an answer on May 16, 2026 at 3:30 pm

    Here’s something you can try. It requires the use of some extra cells, but it should get the job done. Let’s say you start with this data:

    Col_A  Col_B  Col_C  Col_D  Col_E  Col_F  Col_G  Col_H  Col_I
    C 434  xxx    C 435  xxx    C 436  xxx    C 437  xxx    C 435
    C 435  xxx    C 436  xxx    C 437  xxx    C 438  xxx    C 436
    C 436  xxx    C 437  xxx    C 438  xxx    C 439  xxx    C 437
    C 437  xxx    B 438  xxx    C 439  xxx    C 440  xxx    C 438
    C 438  xxx    C 439  xxx    C 440  xxx    C 441  xxx    C 439
    C 439  xxx    C 440  xxx    C 441  xxx    B 442  xxx    C 440
    C 440  xxx    C 441  xxx    C 442  xxx    C 443  xxx    C 441
    C 441  xxx    C 442  xxx    C 443  xxx    C 444  xxx    C 442
    C 442  xxx    C 443  xxx    C 444  xxx    C 445  xxx    C 443
    C 443  xxx    B 444  xxx    C 445  xxx    C 446  xxx    B 444
    

    … let’s say “Col_A” is in cell A1, and the actual data starts in cell A2. Select cell A13 and enter the following formula:

    =IF(OR(LEFT(A2)="C", MOD(COLUMN(A2),2)=0),1,0)
    

    Now click A13 and drag to the right to extend it to I13.
    Drag that whole range down to A22:I22. You should have a field of ones and zeros in those cells now.

    Next, click cell K2 and enter the formula:

    =IF(PRODUCT(A13:I13),"Valid","Not valid!")
    

    Click cell K2 and drag it down to extend it to K11.

    That’s it; you can hide the block of cells with all the ones and zeros if you want.

    Disclaimer: only tested in OO Calc. Should work in Excel too though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 509k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A workaround which is used in the class library would… May 16, 2026 at 4:35 pm
  • Editorial Team
    Editorial Team added an answer you should be able to do it simply by setting… May 16, 2026 at 4:35 pm
  • Editorial Team
    Editorial Team added an answer Directories should have 755 permission; files should have 644 permission.… May 16, 2026 at 4:35 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Excel 2007 I have a row of cells with variation of numbers and letters
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a C# dll that I need to call from unmanaged C++. The
I have an excel spreadsheet which contains a calendar control (Microsoft Calendar Control 2007,
I have a well known problem that is described in Extension Warning On Opening
I have an Excel spreadsheet that I'm reading in that contains some £ signs.
I am using Excel interop in my VB.NET program. My problem is that I
I have some data that's currently stored in an Excel workbook. It makes sense
I have search throughout this site to find a answer to my problem and
All of these questions: Excel 2007 Hangs When Closing via .NET How to properly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.