Solved

How to correct a 2010 Excel VALUE error

Posted on 2012-04-11
8
244 Views
Last Modified: 2012-04-11
I am new to Excel so this is probably a very simple solution, but I cannot figure it out and any help would be greatly appreciated.
                     Column A           Column B         Column C                  Column D
Row 1      Divergence                   25               Divergence                      10
Row 2                                          -25               Divergence
Row 3                                           25               sssssss
Row 4                                           25               Divergence

I created the following forumla:     =COUNTIFS(C1:C4,A1,B1:B4,">D1")
It returns the VALUE error.  I think I understand that there are 2 different data types here that is causing the problem, but I cannot figure out how to fix it.

What I am trying to do is find the number of times the word divergence is found with positive value in column B.  The answer is 2.

Thank you.
0
Comment
Question by:bogeybunky
[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
8 Comments
 
LVL 24

Expert Comment

by:StephenJR
ID: 37833280
It should probably be

=COUNTIFS(C1:C4,A1,B1:B4,">"&D1)
0
 
LVL 24

Expert Comment

by:StephenJR
ID: 37833360
That said, not sure why you would have got a value error.
0
 
LVL 9

Expert Comment

by:Anthony Mellor
ID: 37833496
I can't generate the error either - and probably above is definitely having tried it I get answer 2, with the addition of value 10 in D4 which I presume was a question typo.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:bogeybunky
ID: 37833630
Okay, making some progress here.  I think I over simplified.  The following is more like my real problem

                    Column A           Column B         Column C                  Column D    Column E
Row 1      Divergence                   25               Divergence             Divergence           10
Row 2                                          -25               Divergence             Divergence
Row 3                                           25               sssssss                     ssssss
Row 4                                           25               Divergence             Divergence

Formula:   =COUNTIFS(C1:D4,A1,B1:B4,">"&D1)

I get the correct answer with only Column C, but when I add Column D I am back to VALUE error.

By the way either ">"&D1  or ">"D1 works with only Column C, but both give the error when I add Column D.
0
 
LVL 24

Expert Comment

by:StephenJR
ID: 37833934
That's a different set up. You can only have a single colum reference so C1:D4 won't work.

=SUMPRODUCT((C1:C4=A1)*(D1:D4=A1)*(B1:B4>E1))
0
 

Author Comment

by:bogeybunky
ID: 37834080
Thank you very much StephenJR.  

That does indeed work to get rid of the VALUE error, but the answer is not what I am looking for.  The formula you gave me produces 2 as the result when the answer I am looking for is 4.

I want to know the number of times the word "Divergence" appears when the corresponding value in column B is greater than 10.  That condition occurs twice in column C and twice in Column D.  So I am sure there is some subtlety that I am missing.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 37834319
COUNTIFS will allow multicolumn ranges.....but they all need to be the same size within a single formula. Try this version for your result

=SUMPRODUCT((C1:D4=A1)*(B1:B4>E1))

regards, barry
0
 

Author Closing Comment

by:bogeybunky
ID: 37834382
Thank you very much to all who helped.  I have been a Quattro Pro user for many, many years, but because of instability problems decided I had to learn Excel.  Your help has been invaluable  to me.  thanks again.  I am sure I will be back.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lookup range formula 7 27
Copy one row (from Word) into one cell 14 50
Output Different in Excel Compared In SSMS 8 16
Excel userform issue. 15 16
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

752 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