Solved

I need an excel formula

Posted on 2011-03-24
4
213 Views
Last Modified: 2012-05-11
I am trying to reference a range of cells to look for a specific persons name. For example, if I had Agents 1 though 10. Instead of doing 10 seperate formulas. Look at the very last part of the formula .

=SUMPRODUCT(((SRDATA!$H$2:$H$10000>=$A114)*(SRDATA!$H$2:$H$10000<=$B114)+(SRDATA!$I$2:$I$10000>=$A114)*(SRDATA!$I$2:$I$10000<=$B114)+(SRDATA!$M$2:$M$10000>=$A114)*(SRDATA!$M$2:$M$10000<=$B114)>0)*(SRDATA!$K$2:$K$10000="N")*(SRDATA!$C$2:$C$10000=A21:A49)).

It isnt working and I need to be able to do something like that or I will have a 28 entry sumproduct formula.
0
Comment
Question by:wrt1mea
  • 2
4 Comments
 
LVL 33

Expert Comment

by:jppinto
ID: 35211008
Could you post a sample sheet please?
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 35211059
You can do this for the last part

ISNUMBER(MATCH(SRDATA!$C$2:$C$10000,A21:A49,0))

so the whole formula becomes this

=SUMPRODUCT(((SRDATA!$H$2:$H$10000>=$A114)*(SRDATA!$H$2:$H$10000<=$B114)+(SRDATA!$I$2:$I$10000>=$A114)*(SRDATA!$I$2:$I$10000<=$B114)+(SRDATA!$M$2:$M$10000>=$A114)*(SRDATA!$M$2:$M$10000<=$B114)>0)*(SRDATA!$K$2:$K$10000="N")*ISNUMBER(MATCH(SRDATA!$C$2:$C$10000,A21:A49,0)))

regards, barry

0
 
LVL 1

Author Comment

by:wrt1mea
ID: 35211060
See attached!

Look at the info tab
3-24-11-part-2.xlsx
0
 
LVL 1

Author Closing Comment

by:wrt1mea
ID: 35211087
Fantastic! Helped speed up the computations as well!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Formula 5 45
Excel VBA User Form Help 21 28
If a cell in a range equals "YES" return specific Test. 4 31
Msbbox Notice (4 days) 27 58
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

773 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