+ Reply to Thread
Results 1 to 3 of 3

Output number as a number, not text

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Output number as a number, not text

    I have an "if" formula where if false, the output is "1". But that "1" is coming up as text.

    here's the formula:

    =IF(ISNUMBER(VLOOKUP(A2,'sheet2'!A:S,19,FALSE)),VLOOKUP(A2,'sheet2'!A:S,19,FALSE),"1")

    Then when I reference that result in another formula that is dependent on whether or not a cell is greater than 1, it thinks the result from the above formula is greater than 1. How can I make the above formula output a number for 1 instead of text of 1?
    Last edited by Ocean Zhang; 08-07-2013 at 10:23 PM.

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Output number as a number, not text

    just remove the quotes that you have placed around 1. quotes are turning the number into a text string.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Re: Output number as a number, not text

    holy crap I'm stupid lol

    thanks for the tip

+ 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. Need To Find Text And Output Corresponding Number
    By Steve9383 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-16-2013, 03:38 PM
  2. [SOLVED] Making output of combo-box a number rather than text.
    By david1987 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 08:29 AM
  3. [SOLVED] Formatting number output to a text file
    By aeroman01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2012, 01:22 PM
  4. Inserting page number as text output macro
    By farzyness in forum Excel General
    Replies: 1
    Last Post: 08-26-2010, 11:10 AM
  5. Replies: 7
    Last Post: 12-18-2008, 07:34 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