+ Reply to Thread
Results 1 to 6 of 6

Help with Strange Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    07-03-2006
    Posts
    10
    Hi Ardus,

    it's not a text value, it's just the way I formatted the cell. If I run my macro again, it will convert it back to normal. Here is the marco so you can see :

    Sub Show_Paid()
    If ActiveCell.NumberFormat = "#,##0.00" Then
    Selection.NumberFormat = "< #,##0.00 >"
    ElseIf ActiveCell.NumberFormat = "< #,##0.00 >" Then
    ActiveCell.NumberFormat = "#,##0.00"
    End If
    End Sub


    DL : I tried a second column but it's messy - I have my columns as Jan, Feb etc with carry forward balances and so to work over 2 columns is a pain.

    What I am hopeing to get is a nested SUB (IF) statement that can identify the formula type and then not add up the <> ones. I am struggeling to find a format command in Excel though( plenty in VBA)

    thanks
    Steve

  2. #2
    Bob Phillips
    Guest

    Re: Help with Strange Formula

    and =SUMIF(A:A,"<0") for those in the brackets

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "scr5jo" <scr5jo.2ad3dz_1151917202.0847@excelforum-nospam.com> wrote in
    message news:scr5jo.2ad3dz_1151917202.0847@excelforum-nospam.com...
    >
    > Hi Ardus,
    >
    > it's not a text value, it's just the way I formatted the cell. If I run
    > my macro again, it will convert it back to normal. Here is the marco so
    > you can see :
    >
    > Sub Show_Paid()
    > If ActiveCell.NumberFormat = "#,##0.00" Then
    > Selection.NumberFormat = "< #,##0.00 >"
    > ElseIf ActiveCell.NumberFormat = "< #,##0.00 >" Then
    > ActiveCell.NumberFormat = "#,##0.00"
    > End If
    > End Sub
    >
    >
    > DL : I tried a second column but it's messy - I have my columns as
    > Jan, Feb etc with carry forward balances and so to work over 2 columns
    > is a pain.
    >
    > What I am hopeing to get is a nested SUB (IF) statement that can
    > identify the formula type and then not add up the <> ones. I am
    > struggeling to find a format command in Excel though( plenty in VBA)
    >
    > thanks
    > Steve
    >
    >
    > --
    > scr5jo
    > ------------------------------------------------------------------------
    > scr5jo's Profile:

    http://www.excelforum.com/member.php...o&userid=35990
    > View this thread: http://www.excelforum.com/showthread...hreadid=557771
    >




  3. #3
    Bob Phillips
    Guest

    Re: Help with Strange Formula

    =SUMIF(A:A,">0")

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "scr5jo" <scr5jo.2ad3dz_1151917202.0847@excelforum-nospam.com> wrote in
    message news:scr5jo.2ad3dz_1151917202.0847@excelforum-nospam.com...
    >
    > Hi Ardus,
    >
    > it's not a text value, it's just the way I formatted the cell. If I run
    > my macro again, it will convert it back to normal. Here is the marco so
    > you can see :
    >
    > Sub Show_Paid()
    > If ActiveCell.NumberFormat = "#,##0.00" Then
    > Selection.NumberFormat = "< #,##0.00 >"
    > ElseIf ActiveCell.NumberFormat = "< #,##0.00 >" Then
    > ActiveCell.NumberFormat = "#,##0.00"
    > End If
    > End Sub
    >
    >
    > DL : I tried a second column but it's messy - I have my columns as
    > Jan, Feb etc with carry forward balances and so to work over 2 columns
    > is a pain.
    >
    > What I am hopeing to get is a nested SUB (IF) statement that can
    > identify the formula type and then not add up the <> ones. I am
    > struggeling to find a format command in Excel though( plenty in VBA)
    >
    > thanks
    > Steve
    >
    >
    > --
    > scr5jo
    > ------------------------------------------------------------------------
    > scr5jo's Profile:

    http://www.excelforum.com/member.php...o&userid=35990
    > View this thread: http://www.excelforum.com/showthread...hreadid=557771
    >




+ 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