+ Reply to Thread
Results 1 to 4 of 4

Display If

  1. #1
    Registered User
    Join Date
    10-12-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Display If

    Is there a function I can use to accomplish the following? --

    I want to display the value in column A if the value in Column B = 0.

    Thanks!

  2. #2
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: Display If

    Try this

    =IF(B1=0,A1,"")

  3. #3
    Registered User
    Join Date
    10-12-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Display If

    How complicated can I get with this?

    For example:

    Can I tell Excel to display a running sum for Column B as long as Column A = X, and then have it start a new running sum in Column B as long as Column A = Y?

    What I'm trying to do is find the figure displayed in Column E - Column F when the running sum value in Column B is >= to a running sum value in Column C.

    Attached is a workup of what my spreadsheet would look like. But assume there are 5,000 unique Column A values.

    ?!?!?! Haha.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: Display If

    You can use the IF function to perform many formulas.

    So for sums

    If(A2="X", SUM(B:B),"")

    or

    If(A2="Y", SUM(B:B),"")

    or

    If(A2=8, SUM(B:B), "")

    etc etc

    Or you can combine them

    IF(A2=8, SUM(B:B), IF(A=9, SUM(B:B), ""))

    Where B:B in all cases is the range to SUM

    As for your second part, again a IF will work.

    =IF(B2>=C2, E2, "")

    Bit harder to type without understanding how Col E and F are calculated.

+ 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