Hi Ayush, Not sure about SumIf, but we can use SumProduct:
=SUMPRODUCT((A1:A1000)*((B1:B1000="AJ")+(B1:B1000="CM")+(B1:B1000=12))) Note that SumProduct doesn't seem to support using whole column refs. Regards - Dave. > Date: Wed, 10 Feb 2010 07:30:38 -0800 > Subject: $$Excel-Macros$$ URGENT :Sumif Query > From: jainayus...@gmail.com > To: excel-macros@googlegroups.com > > Dear Group, > > I have a query on sumif function that if I would like to sum a range > based on two values of other range. > > For example : > > Column A = Amount > Column B = Product Line(12,15,CM,AS,AR,AJ etc.) > > I want to sum column A if Column B = 12 or CM or AJ > > the below is not working : > > =sumif(A:A,B:B,"12,CM,AJ") > > Any Help ? > > The compounding of three sumif like = sumif(.....) + sumif(....) + > sumif(....) is not I am looking for. > > Thanks for advising. > > Best regards, > Ayush Jain > > -- > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at > http://www.excelitems.com > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > > To post to this group, send email to excel-macros@googlegroups.com > If you find any spam message in the group, please send an email to: > Ayush Jain @ jainayus...@gmail.com > <><><><><><><><><><><><><><><><><><><><><><> > HELP US GROW !! > > We reach over 6,700 subscribers worldwide and receive many nice notes about > the learning and support from the group.Let friends and co-workers know they > can subscribe to group at > http://groups.google.com/group/excel-macros/subscribe _________________________________________________________________ Looking for a place to rent, share or buy? Find your next place with ninemsn Property http://clk.atdmt.com/NMN/go/157631292/direct/01/ -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,700 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe