+ Reply to Thread
Results 1 to 5 of 5

Create if statement with two parameters

  1. #1
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    Create if statement with two parameters

    Hi! I have the following code:


    Please Login or Register  to view this content.
    But the msgbox still appears when the C32=0

    I want so that if C32>0 and D219="" then the message box will appear, otherwise if the cell C32 = 0 then messagebox should not appear.

    Have I written anything wrong? thank you.
    Last edited by RinorM; 06-22-2014 at 09:15 AM.

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Create if statement with two parameters

    Hi,

    It is working fine 100%
    Even if you are getting msgbox when C32 = 0, then debug the code and check the value of range C32.


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Create if statement with two parameters

    Hi,

    It is working fine 100%
    Even if you are getting msgbox when C32 = 0, then debug the code and check the value of range C32 and D219.


    Regards,
    Paresh J

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Create if statement with two parameters

    The way you have it written should work just fine. It probably has something to do with the format of the cell, the other range value, or you aren't looking at the correct cells.

  5. #5
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Create if statement with two parameters

    Oh now I see, I made a mistake. I wrote down the wrong Sheet. It should be:

    Please Login or Register  to view this content.
    I linked the wrong sheet, I was working in the sheet Indata. Anyway its fixed now.

    Thank you for the help!!
    Last edited by RinorM; 06-22-2014 at 10:38 AM.

+ 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] IF Statement or some function that will allow me to me multiple parameters.
    By AENinc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2014, 08:32 AM
  2. How to create a Matrix from two parameters
    By nagaraj.ravadi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 05:31 PM
  3. If And Or Statement for 3 parameters
    By jchohan83 in forum Excel General
    Replies: 3
    Last Post: 08-10-2011, 01:29 PM
  4. If statement with 3 parameters.
    By rwl518p in forum Excel General
    Replies: 2
    Last Post: 04-05-2011, 04:02 PM
  5. [SOLVED] IF Statement W/3 Parameters ?
    By Kris-GMA in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2005, 10:05 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