+ Reply to Thread
Results 1 to 8 of 8

Filter dr and cr balance

Hybrid View

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Filter dr and cr balance

    Quote Originally Posted by :) Sixthsense :) View Post
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    Function GetType(r As Range) As String
        GetType = Right(r.Cells(1).Text, 2)
    End Function
    In C2 Cell

    =GetType(B2)

    Drag it down...

    thanks and also an help to minus (-) sign before all Cr Balance if that possible

    Sandy

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: Filter dr and cr balance

    In C2 Cell

    =IF(GetType(B2)="DR",B2,0-B2)

    Drag it down...

    Or

    =IF(GetType(B2)="DR","DR","-CR")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Filter dr and cr balance

    Quote Originally Posted by :) Sixthsense :) View Post
    In C2 Cell

    =IF(GetType(B2)="DR",B2,0-B2)

    Drag it down...

    Or

    =IF(GetType(B2)="DR","DR","-CR")
    Thanks sir....

    Sandy

+ 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. Need to filter a report filter based on the previous filter
    By elliotencore in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-28-2014, 07:44 AM
  2. Opening balance and closing balance end of months.
    By sammy011 in forum Excel General
    Replies: 2
    Last Post: 01-31-2013, 02:12 PM
  3. Replies: 4
    Last Post: 01-02-2011, 04:30 PM
  4. auto balance from previouse balance and value
    By phil_jackson in forum Excel General
    Replies: 7
    Last Post: 09-26-2010, 11:42 AM
  5. rent received/balance owed/running balance spreadsheet
    By Quickbooks dummy in forum Excel General
    Replies: 1
    Last Post: 01-02-2006, 03:40 PM

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