+ Reply to Thread
Results 1 to 6 of 6

If-and formula working incorrectly

  1. #1
    Registered User
    Join Date
    04-07-2008
    Posts
    27

    Question If-and formula working incorrectly

    All,

    I have constructed an if-and statement to populate a cell based on two factors: if the month (blue) occurs after the 'eligible date' (blue) and the 'variance' (blue) is equal to or greater than zero, the 'actual bonus' (yellow) would populate with 'potential bonus' amount; as it stands, the 'actual bonus' defaults to the 'potential bonus' , and I'd like it to be empty when no data is entered. Please advise.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    =IF(AND(B26>=$C$5,G26>=0),H26,0)
    b26 is greater than c5 so true
    g26 is greater than 0 so true (test if(g26>0,"Y","N") returns Y)
    both conditions met so H26 returned
    try in g26
    =IF(F26=0,0,(F26-E26)
    Last edited by martindwilson; 09-09-2008 at 12:04 PM.

  3. #3
    Registered User
    Join Date
    04-07-2008
    Posts
    27
    Quote Originally Posted by martindwilson View Post
    =IF(AND(B26>=$C$5,G26>=0),H26,0)
    b26 is greater than c5 so true
    g26 is greater than 0 so true (test if(g26>0,"Y","N") returns Y)
    both conditions met so H26 returned
    try in g26
    =IF(F26=0,0,(F26-E26)
    The formula will be true if value is 0 as it is =IF(AND(B26>=$C$5,G26>=0),H26,0), so I tried "" in place of zeros and get the same result.

  4. #4
    Registered User
    Join Date
    04-07-2008
    Posts
    27
    Still getting incorrect result on this one, any input would be appreciated!

  5. #5
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676
    Try this formula in I26

    =IF(AND(B26>=$C$5,G26>=0,ISNUMBER(G26)),H26,0)

  6. #6
    Registered User
    Join Date
    04-07-2008
    Posts
    27
    Perfect, thanks!

+ 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. Protected Formulas
    By georgeeasten in forum Excel General
    Replies: 13
    Last Post: 12-10-2018, 12:47 AM
  2. Formula working but not working
    By bustanutti21 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2008, 07:17 PM
  3. Looking for a macro that copies a formula from column to column as I change the month
    By caliskier in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-18-2007, 03:32 PM
  4. probelm with complicated match index formula
    By dmorovitz in forum Excel General
    Replies: 1
    Last Post: 06-20-2007, 08:05 AM
  5. Simple array formula not working
    By alecabral in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2007, 11:59 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