+ Reply to Thread
Results 1 to 4 of 4

IF function issue

  1. #1
    Registered User
    Join Date
    08-31-2019
    Location
    Mumbai, India
    MS-Off Ver
    2016
    Posts
    3

    IF function issue

    Hi all,

    I am trying this formula in excel, but for some reason its showing value error for text values. Dont know why

    =IF(AND(K35="No Position",K35="PRICE MISSING"),0,(E35*K35)/AD35).

    It works fine if i have number in column K, but if there is above mentioned text in formula, it shows error.

    Kindly help.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,150

    Re: IF function issue

    It shows an error because you cannot multiply a number by a text value.
    Also this part
    AND(K35="No Position",K35="PRICE MISSING")
    Will always return False, because K35 cannot be both "No Position" and "PRICE MISSING"
    Should the formula be
    =IF(OR(K35="No Position",K35="PRICE MISSING"),0,(E35*K35)/AD35).

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: IF function issue

    K35 cannot equal "No Position" AND equal "PRICE MISSING", just not possible. You might want

    =IF(OR(K35="No Position",K35="PRICE MISSING"),0,IF(ISNUMBER(K35),E35*K35/AD35,0)).

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF function issue

    Your formula is mutiplying K35 by E35. If K35 contains ANY text then the formula will result in a #VALUE!. hence there's no point in defining two particular strings. Instead just use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Look up Function Issue
    By Excel15 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2014, 04:30 PM
  2. IF function issue
    By mbeyatli in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-04-2014, 12:12 PM
  3. Having an issue with If Sum function
    By Blazingworm in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-27-2014, 08:41 PM
  4. [SOLVED] Multiplying and summing every nth range
    By skimp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2013, 01:46 AM
  5. IF function issue
    By mercedes98 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2013, 10:41 PM
  6. If/then function issue
    By abeld2001 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2012, 02:06 PM
  7. If Function Issue
    By elvishcreampie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2011, 10:19 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