Forum Discussion

FilmExcel's avatar
FilmExcel
Copper Contributor
Feb 19, 2021
Solved

Can't seem to figure out a formula to do the following

Hello all,

 

I can't seem to figure out the formula I need, let alone how to execute it.

I have a table which contains something such as:

 

             amount amount amount    total     %      Paid /Owing

             $300      $400      $200      $900      15%     P

             $200      $200      $200      $600      10%     O

             $1000    $600      $500      $2100    35%     P

             $1000    $1000    $400      $2400    40%     O

Total    $2500    $2200   $1300   $6000  100%

Percentage of Paid = 50%

Percentage of Owing = 50%

 

I want a formula for the percentage paid and percentage owing.

I tried to use COUNTIFS to count the number of Ps and Os, but couldn't figure a way to relate them to the cell adjacent (%) to them.

It seems I need an IFS as well. I am completely lost on how to do this.

Appreciate any help with this.

9 Replies

  • Rajesh_Sinha's avatar
    Rajesh_Sinha
    Iron Contributor
    I'm unable to simplify that how you get P & O, if considering Percentage of Paid = 50% and Percentage of Owing = 50%, none of the cells meets this criteria,, also write that you are considering % of which for P & O,, ROW or COLUMN total !!
  • JMB17's avatar
    JMB17
    Bronze Contributor

    FilmExcel 

     

    Try the SUMIF function. Let's say % is in column F and paid/owing is in column G, then

     

    =SUMIF(G2:G5,"P",F2:F5)

     

     

    • FilmExcel's avatar
      FilmExcel
      Copper Contributor
      This is perfect, thanks. I was over complicating it.
    • Rajesh_Sinha's avatar
      Rajesh_Sinha
      Iron Contributor
      The million dollar question is that how OP is getting P & O in column G ,, what the mechanism behind, otherwise getting % for both is not a big issue!!
      • PeterBartholomew1's avatar
        PeterBartholomew1
        Silver Contributor

        Rajesh_Sinha 

        Surely whether an amount has been paid or not will be a matter of external fact and, as such, is input data rather than a calculation within Excel.

    • FilmExcel's avatar
      FilmExcel
      Copper Contributor
      Thanks, replaced the A9 with ā€œPā€ and O accordingly as JMB17 put it.
      Works like a dream.

Resources