Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using Multiple Values in Criteria in Excel

Posted on 2013-12-18
2
Medium Priority
?
253 Views
Last Modified: 2013-12-18
This is what I am trying to do and I will add my broken formulas as well.

=SUMIF(B5:B154, {"A";"B","S1"}, H5:H154)
=SUMIF(B5:B154, CRITDN, H5:H154)

So here is what I want it to do.

If Value in B5 = A or B or S1 Then Use H5 Value in SUM total.

If Value of B6 = S Then Then do not Use H6 Value in SUM total.

I Also have a Defined Name of CRITDN that has each match in a cell. and the Value of the Defined Name is {"A";"B";"S1"}
0
Comment
Question by:_BTS_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 2000 total points
ID: 39727304
Try:

=SUMPRODUCT(SUMIF(B5:B154, {"A";"B";"S1"}, H5:H154))

or

=SUMPRODUCT(SUMIF(B5:B154, CRITDN, H5:H154))
0
 

Author Comment

by:_BTS_
ID: 39727457
That was the trick!  I was pulling my hair out!!!!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question