Results 1 to 5 of 5

Help writing formula - If cell = % vs text

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Help writing formula - If cell = % vs text

    Hi,

    I am having a hard time writing a formula that does what I want. For example, if I have these two cells:

    A1= "1.5%"
    A2 = "12 Years"

    I want to write a formula that says If A1 is equal to a the format of ###%, then A1, else A2.

    The reason I am writing this formula is because I have a tool that pulls in data from a website, but sometimes the site changes and then it pulls in wrong data. I can narrow it down into two cells and if I write this IF formula, I can grab the write data no matter what, even if the site makes a little change.

    Does this make sense?
    Last edited by Rick-O-Shay; 05-17-2021 at 04:19 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. error writing to cell if a numeric text box is empty
    By Roberta.Walker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2016, 02:34 PM
  2. Type Mismatch Error for writing text in a cell
    By PleaseHelpMe3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2016, 06:29 PM
  3. Writing a formula for returning a text value based on multiple criteria
    By DataAnalyst215 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2016, 06:55 PM
  4. Writing cell values from dynamic text boxes
    By BillWilts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2010, 02:30 PM
  5. Writing text in a cell
    By Haydn_17 in forum Excel General
    Replies: 2
    Last Post: 01-21-2010, 06:44 AM
  6. Writing text in a formula
    By cbrooks in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2009, 05:25 PM
  7. Writing Text and Formula in the formula bar of a cell
    By modest_16081982 in forum Excel General
    Replies: 2
    Last Post: 08-27-2007, 05:25 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