Forum Discussion

vaw1969's avatar
vaw1969
Copper Contributor
Oct 31, 2020

formula help please

i need a formula please if someone can help

 

my columns are below

transaction descriptionDebit Credit  Balance  Account transfersStock & dog purchasesanimal health
AT  $                 50.00 $                279.10    
SP-$           1,500.00  $                454.40     

I want the right hand columns to auto fill from the debit or credit column with the amount but into the correct heading space:  ie:  the $50.00 to auto fill into the account transfers column & the $1500 to auto fill into the Stock & dog purchases column

 

I hope someone can understand what i mean and can give me an easy formula that I can set up, it is for general ledger processing.

 

thanks

5 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    vaw1969 

    It's better to keep summary by expenses in separate table or create PivotTable on general ledger to have such. Anyway, with such data layout you first need to map transaction descriptions in first column on column names, like here in right range

    With that formula in F3 could be

    =($C3+$D3)*IFNA((INDEX($K$3:$K$5,MATCH($B3,$J$3:$J$5,0))=F$2),0)

    and drag it to the right and down.

    Even better to use Excel Tables to be more dynamic with data ranges.

     

    • vaw1969's avatar
      vaw1969
      Copper Contributor

      SergeiBaklan  I'm sorry I don't understand what you are trying to explain to me.

       

       

      this is an exert from my spreadsheet

      transaction description Debit/Credit  Balance  Account transfers Stock & dog purchasesanimal healthfuelbreaking & trainingvehicle expensesVehicle paymentdrawingsBank chargesinterest
         $                229.10           
                    
                    
      AT $                 50.00 $                279.10  $               50.00         
      AT $                 50.00 $                329.10  $               50.00         
      AT $                 50.00 $                379.10  $               50.00         
      AT $                 50.00 $                429.10  $               50.00         
      INT $                   0.12 $                429.22           $                 0.12
      AT $                 50.00 $                479.22  $               50.00         

       

      What I am wanting to do is have a formula that will automatically fill the Ledger columns with the figures from the debit credit column when I add the description abbreviation.  ie:  AT stands for account transfers so all the debit/credits that are an AT description will auto fill into the account transfers column, and the INT to interest column (rather than me having to manually copy and paste the figure into that column).  

       

      I hope this is clearer and allows you to help me with a formula to do this.

       

      Thanks

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        vaw1969 

        First you need to explain to Excel that the transaction named AT shall go Account transfers column, INT to interest, etc.  That's why we generate this helper range, otherwise how Excel know which transaction is belong to which column. 

         

        Having this range we may generate the formula which first finds in it column name which is belong to current transaction. Next, if above name is the same as current column name, we return Debit+Credit, into the cell for the current column and current transaction, otherwise 0.

  • Ramiz_Assaf's avatar
    Ramiz_Assaf
    Iron Contributor

    vaw1969 

     

    I want to help you, however it is not clear. 

    Can you please give an example and explain it a bit better. it is not hard what you are asking, but I need to be sure that I undersood it correctly.

    • vaw1969's avatar
      vaw1969
      Copper Contributor

      Ramiz_Assaf this is an exert from my spreadsheet

      transaction description Debit/Credit  Balance  Account transfers Stock & dog purchasesanimal healthfuelbreaking & trainingvehicle expensesVehicle paymentdrawingsBank chargesinterest
         $                229.10           
                    
                    
      AT $                 50.00 $                279.10  $               50.00         
      AT $                 50.00 $                329.10  $               50.00         
      AT $                 50.00 $                379.10  $               50.00         
      AT $                 50.00 $                429.10  $               50.00         
      INT $                   0.12 $                429.22           $                 0.12
      AT $                 50.00 $                479.22  $               50.00         

       

      What I am wanting to do is have a formula that will automatically fill the Ledger columns with the figures from the debit credit column when I add the description abbreviation.  ie:  AT stands for account transfers so all the debit/credits that are an AT description will auto fill into the account transfers column, and the INT to interest column (rather than me having to manually copy and paste the figure into that column).  

       

      I hope this is clearer and allows you to help me with a formula to do this.

       

      Thanks

       

Resources