+ Reply to Thread
Results 1 to 2 of 2

Formula working but not working

  1. #1
    Registered User
    Join Date
    07-24-2005
    Posts
    20

    Formula working but not working

    This is the formula applied to my spreadsheet..

    =IF(AND(K8="X",L8=2),4.5,0)+IF(AND(K8="X",L8=1),1,0)+IF(AND(K8="X",L8=3),9,0)+IF(AND(K8="X",L8=4),18 ,0)+IF(AND(K8="X",L8=5),36,0)

    For some reason it does not matter what is selected for K8, it seems to only be taking into consideration L8.

    How can I fix this?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    It's difficult to understand what you want the formula to do if you only post a formula that doesn't do it!

    It appears from the formula that any value in K8, apart from "X" should result in zero being returned, if K8 does contain "X" then the value returned is dependent upon the value in L8. Can you give an example of values for K8 and L8 where the formula returns a result you don't want?

    Note: this formula will supply the same result more simply

    =IF(K8="X",IF(L8=2,4.5,IF(L8=1,1,IF(L8=3,9,IF(L8=4,18,IF(L8=5,36,0))))),0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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