+ Reply to Thread
Results 1 to 6 of 6

Using =IF with text and number to get a value

  1. #1
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    167

    Using =IF with text and number to get a value

    In Column A some times I will have a number, text or it will be blank. I am using this formula "=IF(A30>0.5,(G30/E30),IF(A30=Text,0))" to get the value when column G is divided by column E without getting error. Can you please help me out on this. Thanks for taking a look at it.

    Roco

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Using =IF with text and number to get a value

    not sure what happens when its blank?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    anyway
    see formula
    checks for blank first
    then checks for text
    then checks what the value of a30 is
    not sure what you want when its less than 0.5
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using =IF with text and number to get a value

    Try

    =IF(AND(ISNUMBER(A30),A30>0.5),G30/E30,0)

  4. #4
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    167

    Re: Using =IF with text and number to get a value

    Thanks for the help on that. Works great.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using =IF with text and number to get a value

    You're welcome

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using =IF with text and number to get a value

    Here's another one...

    =IF(N(A30)>0.5,G30/E30,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Geting highest number value from list with values which are text/number combinations
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2016, 10:48 AM
  2. Replies: 5
    Last Post: 11-30-2014, 07:56 AM
  3. [SOLVED] Formula to count the number of spaces before text/number is written in a cell.
    By kmis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-12-2013, 05:05 PM
  4. Replies: 6
    Last Post: 01-31-2013, 02:50 AM
  5. Replies: 4
    Last Post: 11-13-2012, 02:16 PM
  6. Replies: 6
    Last Post: 07-29-2008, 03:23 PM
  7. ZeroPadding Mixed Number, Text, Number Content in Cell
    By Sbubendorf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2008, 05:52 PM

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