+ Reply to Thread
Results 1 to 1 of 1

trying to get a subtraction dependant on cell a value, if true, dependant on switch.

  1. #1
    Registered User
    Join Date
    01-16-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2000
    Posts
    9

    trying to get a subtraction dependant on cell a value, if true, dependant on switch.

    here goes.

    i have these cells that are summed. works fine.
    =SUM(P14:R14)+(S14*C4)+(T14*Q14)

    now im trying to get a subtraction in with a switch. if P14 is value 0, and switch is on, subtract 30, if switch is off, subtract nothing, if value of p14 is other than 0, subtract nothing.

    i tried =SUM(P14:R14)+(S14*C4)+(T14*Q14)-SUMIF(P14;0;VLOOKUP(R10;Sheet2!A24:B25;2))

    where R10 is the switch

    Sheet2!A24:B25 is the array
    NO | 30
    YES | 0

    but it doesnt work. any idea on how i can fix this problem?

    *EDIT* ok nevermind i figured it out it was an IF( function i needed, not a SUMIF(
    Last edited by Raybras; 01-27-2010 at 05:56 PM.

+ 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