Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. How to get the cell that contains a certain text?

How to get the cell that contains a certain text?

Scheduled Pinned Locked Moved Visual Studio
helptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alek Garcia
    wrote on last edited by
    #1

    Hi, I 'm developing (trying actually) a desktop application that works well only if the word "PERIOD" is located in the cell A14(inside an excel file). But instead of that, I'd like to make it work if the word "PERIOD" is found no matter what cell it is in, provided it is inside the column 'A'. That's the problem, I don't know how to search a certain word inside a column and get its cell(the 'row part' actually). In other words I'm looking for this code: "If a cell inside column A contains "PERIOD", get the number of row". Any ideas? Thanks in advance.

    L 1 Reply Last reply
    0
    • A Alek Garcia

      Hi, I 'm developing (trying actually) a desktop application that works well only if the word "PERIOD" is located in the cell A14(inside an excel file). But instead of that, I'd like to make it work if the word "PERIOD" is found no matter what cell it is in, provided it is inside the column 'A'. That's the problem, I don't know how to search a certain word inside a column and get its cell(the 'row part' actually). In other words I'm looking for this code: "If a cell inside column A contains "PERIOD", get the number of row". Any ideas? Thanks in advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This has nothing to do with Visual Studio, and since you have not mentioned what programming language you are using, or how you are accessing the Excel file, it is difficult to make a useful suggestion.

      Use the best guess

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups