sumifs - Sum the values in Excel cells depending on changing criteria -


I have three columns of data in an Excel spreadsheet, the first column A is a unique identifier. Column B is a number and column C is either a tick or a place:

  ABC 1-45 150 √ 2D-46 200 3D -45 80 4D-46 20 √5 D-45 70 √  

Now, I would like to add values ​​present in Ticket B, being present on Tick and related to unique ID in column A. In this case using row 1 and 5. I use

  = IF (ISTXT (C1), CONCATENATE (A1))  

& Amp;

  = IF (ISTEXT (C1), CONCATENATE (B1)).  

This leaves me with two arrays of data:

  D1D-45 150-4D-4620D-45 70  

Now I want to add values ​​in column D based on the ID in column E, in this position in line 1 and 5. I can directly use the SUMIFS statement to specify d-45 as the criterion, however this unique ID will always change. Can SUMIFS be used?

I also want to keep every new variation of the ID number in the different title with the equivalent sum, which is:

  AB 1 d-45 d-46 2 220 20  

etc ...

you can try it To write different identification letters (copy right in H1): This is an array formula so that you need Ctrl Shift to enter the formula enter

  = INDEX ($ A $ 1: $ A $ 5; small (if ROW ($ A $ 1: $ A $ 5) -ROW ($ A $ 1) + 1 = match ($ A $ 1: $ One $ 5, $ A $ 1: $ a $ 5, 0); line ($ A $ 1: $ A $ 5) -ROW ($ A $ 1) +1, ""); Columns ($ A $ 1: A1)))  

To get the amount now (copy H 2 and correct)

  = SUMPRODUCT (($ A $ 1: $ A $ 5 = H1) * ISTEXT ($ C $ 1: $ C $ 5) * $ B $ 1: $ B $ 5]  

In the example the data is in A1: C5 Depending on the regional setting, you should change ";" Field separator by ","


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -