Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel using IF and

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-04, 06:51
stella herbert stella herbert is offline
Registered User
 
Join Date: Jan 2004
Location: Zambia
Posts: 4
Excel using IF and

I can't seem to find an answer to this question:

I have the following lists in excel - names of poeple, what level of qualification they have, which village they live in.

I want to make a table of numbers of people from a certain place with a certain qualification, and have been trying to use AND IF.

What I need to do is say IF in a certain range in one column ( for example E2:E300) , the name of the place is "x" then count how many times the qualification "Y" appears another column ( say G2:G300).

Is this possible ?

thanks

stella herbert
Reply With Quote
  #2 (permalink)  
Old 01-24-04, 17:43
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,080
Several ways to approach this. If you want a formula with more than one condition, then use:

=SUMPRODUCT(($E$3:$E$300="x")*($G$3:$G$300="y"))

Another approach is to use the Pivot Table, and rather than sums, use Count.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 01-24-04, 18:42
stella herbert stella herbert is offline
Registered User
 
Join Date: Jan 2004
Location: Zambia
Posts: 4
thanks for your reply, but I have tried this and it doesn't seem to work.

Also tried pivot tables - a bit beyond me !

stella h
Reply With Quote
  #4 (permalink)  
Old 01-26-04, 10:12
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,080
I used that formula above with your guidelines and worked fine.

What does the cell show when you use the sumproduct?
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #5 (permalink)  
Old 01-26-04, 10:28
stella herbert stella herbert is offline
Registered User
 
Join Date: Jan 2004
Location: Zambia
Posts: 4
Quote:
Originally posted by shades
I used that formula above with your guidelines and worked fine.

What does the cell show when you use the sumproduct?


Everything comes out at 0. I've double checked that the formula is enterd correctly, can't see anythign wrong with it.

stella
Reply With Quote
  #6 (permalink)  
Old 01-26-04, 11:09
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,080
Okay, I assume you are working on a backup copy. A few questions:

The value that you are looking for in column E is text, correct? And likewise, the value in column G is text? (If they are numbers, then omit the " marks in the formula.)

Where do you have this formula? (Should not be in column E or G

I noticed in my example I started at E3 instead of E2, so also G3 rather than G2. But that still should work.

What happens if you change one of the values in column G to y? Does the result of the formula change?
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #7 (permalink)  
Old 01-26-04, 14:29
stella herbert stella herbert is offline
Registered User
 
Join Date: Jan 2004
Location: Zambia
Posts: 4
Quote:
Originally posted by shades
Okay, I assume you are working on a backup copy. A few questions:

The value that you are looking for in column E is text, correct? And likewise, the value in column G is text? (If they are numbers, then omit the " marks in the formula.)

Where do you have this formula? (Should not be in column E or G

I noticed in my example I started at E3 instead of E2, so also G3 rather than G2. But that still should work.

What happens if you change one of the values in column G to y? Does the result of the formula change?


Ok all it needed was for me to drop the " with the number in column G.

Thanks a lot for your time and patience,

much appreciated,

stella
Reply With Quote
  #8 (permalink)  
Old 01-26-04, 14:52
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,080
Great! Glad it is working for you!!!

And thanks for getting back to the board with the resolution. That helps everyone!
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On