Sum of numbers. in Col. B with "books" as label in Col. A

%3CLINGO-SUB%20id%3D%22lingo-sub-1950220%22%20slang%3D%22en-US%22%3ESum%20of%20numbers.%20in%20Col.%20B%20with%20%22books%22%20as%20label%20in%20Col.%20A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1950220%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BA%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BB%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E1%26nbsp%3B%3C%2FSTRONG%3Egeneral%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B10.34%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20The%20function%20would%20give%2030.43%20for%20the%20sum%20of%20%22books%22%3C%2FP%3E%3CP%3E%3CSTRONG%3E2%26nbsp%3B%3C%2FSTRONG%3Egeneral%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B5.37%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BThere%20are%20over%201%2C000%20rows%20in%20column%20A%20and%20B%3C%2FP%3E%3CP%3E%3CSTRONG%3E3%26nbsp%3B%3C%2FSTRONG%3Ebooks%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B9.34%3C%2FP%3E%3CP%3E%3CSTRONG%3E4%26nbsp%3B%3C%2FSTRONG%3Egeneral%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B15.25%3C%2FP%3E%3CP%3E%3CSTRONG%3E5%26nbsp%3B%3C%2FSTRONG%3Egeneral%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%208.76%3C%2FP%3E%3CP%3E%3CSTRONG%3E6%26nbsp%3B%3C%2FSTRONG%3Ebooks%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%207.40%3C%2FP%3E%3CP%3E%3CSTRONG%3E7%26nbsp%3B%3C%2FSTRONG%3Ebooks%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B13.69%3C%2FP%3E%3CP%3E.%3C%2FP%3E%3CP%3E.%3C%2FP%3E%3CP%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1950220%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1950296%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20of%20numbers.%20in%20Col.%20B%20with%20%22books%22%20as%20label%20in%20Col.%20A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1950296%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F888892%22%20target%3D%22_blank%22%3E%40denamark1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSUMIF(A%3AA%2C%22books%22%22%2CB%3AB)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

     A                 B

general     10.34                          The function would give 30.43 for the sum of "books"

general       5.37                             There are over 1,000 rows in column A and B

books         9.34

general     15.25

general      8.76

books        7.40

books     13.69

.

.

.

 

 

1 Reply

@denamark1 

=SUMIF(A:A,"books"",B:B)