SOLVED

sumifs formula help

%3CLINGO-SUB%20id%3D%22lingo-sub-2802540%22%20slang%3D%22en-US%22%3Esumifs%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2802540%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%20%2C%20I%20just%20learnt%20about%20the%20sumifs%20formula's%20but%20I%20don't%20get%20it%20!%20I%20mean%20I%20do%20the%20simple%20ones%20but%20I%20am%20having%20trouble%20with%20the%20below%20%2C%20could%20some%20help%20me%20please%20%2C%20In%20column%20%22I19%22%20i%20need%20formula%20to%20sum%20all%26nbsp%3B%20%22payable%22%20in%20Period%205%20from%20TAB%20%22Rent%20fc%22%20%2C%20rather%20than%20adding%20each%20cell%20is%20there%20a%20sumifs%20formula%20I%20could%20use%20%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2802540%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2802838%22%20slang%3D%22en-US%22%3ERe%3A%20sumifs%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2802838%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F132595%22%20target%3D%22_blank%22%3E%40kamjam%3C%2FA%3E%26nbsp%3Bso%20the%20formula%20is%20quite%20so%20simple%20because%20you%20are%20trying%20to%20index%20both%20columns%20and%20rows.%26nbsp%3B%20I%20mean%20you%20could%20have%20a%20simple%20formula%20that%20is%20specific%20for%20that%201%20column%20of%20data%20but%20here%20is%20a%20more%20general%20solution%20that%20I%20think%20will%20work%20for%20you%20but%20assumes%20you%20have%20Excel365.%26nbsp%3B%20If%20you%20don't%20we%20can%20get%20rid%20of%20the%20LET%20statement%20(used%20to%20explain%20the%20different%20steps)%20and%20may%20need%20to%20get%20rid%20of%20the%20XMATCH%20depending%20on%20your%20version%20of%20Excel.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel-formula%22%3E%3CCODE%3E%3DLET(input%2C'rent%20fc%20'!%24A%241%3A%24N%2433%2C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20h_input%2C%20%22input%20is%20the%20input%20range%20from%20rent%20fc%20tab%22%2C%0A%20%20%20%20%20%20colnum%2CXMATCH(%22P%22%26amp%3BMID('Summary%20fcast'!B2%2C8%2C99)%26amp%3B%22*%22%2CINDEX(input%2C3%2C)%2C2)%2C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20h_colnum%2C%20%22colnum%20uses%20the%20Period%20column%20in%20the%20summary%20%20table%20to%20find%20which%20column%20in%20the%20rent%20fc%20should%20be%20used%22%2C%0A%20%20%20%20%20%20%20%20%20%20thisp%2CINDEX(input%2C%2Ccolnum)%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20h_thisp%2C%20%22thisp%20uses%20colnum%20to%20pull%20out%20only%20the%20column%20of%20interest%20from%20the%20original%20input%20range%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20final%2CSUMIF(INDEX(input%2C%2C2)%2C%22Payable%22%2Cthisp)%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20h_final%2C%20%22final%20then%20uses%20the%20SUMIF%20to%20only%20sum%20up%20rows%20in%20the%20column%20of%20interest%20(thisp)%20if%20the%20title%20in%20column%202%20says%20'Payable'%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20final)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi everyone , I just learnt about the sumifs formula's but I don't get it ! I mean I do the simple ones but I am having trouble with the below , could some help me please , In column "I19" i need formula to sum all  "payable" in Period 5 from TAB "Rent fc" , rather than adding each cell is there a sumifs formula I could use ? 

1 Reply
best response confirmed by kamjam (Occasional Contributor)
Solution

@kamjam so the formula is quite so simple because you are trying to index both columns and rows.  I mean you could have a simple formula that is specific for that 1 column of data but here is a more general solution that I think will work for you but assumes you have Excel365.  If you don't we can get rid of the LET statement (used to explain the different steps) and may need to get rid of the XMATCH depending on your version of Excel.

=LET(input,'rent fc '!$A$1:$N$33,  
                             h_input, "input is the input range from rent fc tab",
      colnum,XMATCH("P"&MID('Summary fcast'!B2,8,99)&"*",INDEX(input,3,),2), 
                             h_colnum, "colnum uses the Period column in the summary  table to find which column in the rent fc should be used",
          thisp,INDEX(input,,colnum),
                             h_thisp, "thisp uses colnum to pull out only the column of interest from the original input range",
           final,SUMIF(INDEX(input,,2),"Payable",thisp),
                             h_final, "final then uses the SUMIF to only sum up rows in the column of interest (thisp) if the title in column 2 says 'Payable'",
           final)