+ Reply to Thread
Results 1 to 2 of 2

Using an IF function from data of an embedded query

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Using an IF function from data of an embedded query

    I'm trying to use a IF function for something as simple as "=IF(C3=40,"YES',"NO)" then it returns "NO"... the cell clearly has 40 and the formatting is general. The data is from an embedded query.

    When I type the function as "=IF(C3="40","YES","NO"), then it returns "YES" like I want.

    I'm looking to ultimately use greater than or less than functions with the IF function, but it doesn't work because of how the data is stored. Thank you for your help!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Using an IF function from data of an embedded query

    since it's stored as a text, you can convert C3 into a number by using:
    =IF(--C3=40,"YES',"NO)

    or:
    =IF(VALUE(C3)=40,"YES',"NO)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Power Query - removing embedded filters after export
    By Lauris K in forum Excel General
    Replies: 0
    Last Post: 06-25-2019, 07:25 AM
  2. Embedded zero function in data table
    By Cordeslucas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2015, 11:27 AM
  3. Embedded Query - Teradata Database ODBC - Create Table
    By Jennasis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2013, 08:55 AM
  4. web query in Macro - how to embedded in file, not a path to c Drive
    By asyahdo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2013, 01:49 AM
  5. Data & Sort function query
    By bazza jay in forum Excel General
    Replies: 3
    Last Post: 03-05-2013, 10:12 AM
  6. Web Query Macro with embedded proxy id and password.
    By Aqua in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2007, 09:07 AM
  7. [SOLVED] Passing Params to Embedded query programmatically
    By G in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2005, 10:06 AM

Tags for this Thread

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