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 7090647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:04:50+00:00 2026-05-28T08:04:50+00:00

I am currently using isnumber to determine whether a specific word exist within a

  • 0

I am currently using isnumber to determine whether a specific word exist within a cell that contains a sentence. I am trying to determine how to find the value of a number that always precedes, or follows, a specific word. How can I manipulate the formula, or create a series of formulas, to pull a ‘variable word’ out that precedes, or follows, a ‘constant word’?

for example,

There were 39 cats that ran through 45 gates.

There were 32 cats that ran through 20 gates.

I am looking to pull the number of cats that ran through gates.

My current progress…

The number of cats will always fall between 1 – 100, and the number of gates will also always fall between 1 – 100.
Currently, I am running 100 columns. Each column has a formula like =ISNUMBER(SEARCH(” 2 cats “,’cell that contains the sentence’)), the next column would be =ISNUMBER(SEARCH(” 3 cats “,’cell that contains the sentence’)). This returns true or false so that I can have a column that finds the true throughout the rows and returns the cat value of that cell…

my current problem…

There are two numbers within each sentence so…I currently have two true columns.

Question…

is there a way to pull out the number that precedes the word cats?
the number of cats will never always be greater than the number of gates nor always less than the number of gates.
the word ‘cats’ will remain constant throughout each sentence but the number will change…

hopefully this is clear enough and someone can help! Thanks in advance!!

just added –
I realized that on my current computer I am runnig the starter edition so I do not have access to VBA. I found that using this formula worked good. =LOOKUP(1,RIGHT(TRIM(LEFT(J46,FIND(“cats”,J46)-1)),{1,2,3,4,5,6})).
although it returns all numbers as positive.

my question now would be – how do you find a value that follows a constant word rather than precedes it? –

  • 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-28T08:04:51+00:00Added an answer on May 28, 2026 at 8:04 am

    This formula should get you the number of cats from text in A1

    =LOOKUP(1000,MID(A1,FIND("cats",A1)-{1,2,3,4},{1,2,3,4})+0)

    You can do the same for “gates”. Note: FIND is case-sensitive so it will find “cats” but not “Cats” – change to SEARCH if you don’t want case-sensitivity

    Explanation: The MID part of the formula, i.e. this part

    MID(A1,FIND("cats",A1)-{1,2,3,4},{1,2,3,4})

    returns an “array” of 4 values, e.g. if A1 contains There were 3 cats that ran through 20 gates then that will return this “array”. {” “,”3 “,” 3 “,”e 3 “} then +0 converts those to numbers (or errors) so you get

    =LOOKUP(1000,{#VALUE!,3,3,#VALUE!})

    and where the lookup value is greater than any number in the lookup array (which it always will be here) then LOOKUP takes the last number, i.e. 3

    You can cater for numbers up to 9999 by changing to

    =LOOKUP(10000,MID(A1,FIND(“cats”,A1)-{1,2,3,4,5},{1,2,3,4,5})+0)

    adjust in the same way for higher numbers

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

Sidebar

Related Questions

Im currently using codeigniter to build a messaging system and im trying to stay
Currently using Telerik ASP .NET MVC Controls version 2011.2.712 Hello all, I am trying
Currently using Oracle/BEA/Plumtree ALUI Portal 6.1, and am trying to display a client's IP
Im currently using base64_encode for some $_GET params that i don't want regular user
I'm currently trying to create a Python script that will autogenerate space-delimited arithmetic expressions
Im currently using a method that looks like the following code to add script
am currently using google feed api to get feed links dynamically. am trying to
Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control. We have licenses for Telerik. I
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
Currently using Google Analytics as a supplement to our paid tracking software, but neither

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.