#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default If Statement

Look at the following formula and tell me what is wrong with it. I am trying
to have a cell count "1" if a certain group of sponsors appear in the cell I
have several sponsors in the same list. What I want to happen is when a
certain sponsor is chosen I want it to count as 1 in another box. I have one
group say in cells E2:E5 and another group in E6:E10.
=IF(F4:F9=Lists!E13:E22, "1", IF(F4:F9=Lists!E2:E12, "0",
IF(F4:F9=Lists!E23:E30, "0")))
This is the formula I came up with for one cell in my Totals area.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If Statement

It's not real clear what you're trying to do...

Let's see if we can figure it out.

when a certain sponsor is chosen I want it to count as 1


Ok, how is a sponsor chosen? A "certain sponsor" implies a *single* sponsor.

If sponsor A is chosen, then you want to see if sponsor A is in the range
Lists!E13:E22 and if it is return 1?

What do these other ranges have to do with it?

IF(F4:F9=Lists!E2:E12, "0",
IF(F4:F9=Lists!E23:E30, "0"


--
Biff
Microsoft Excel MVP


"Dave" wrote in message
...
Look at the following formula and tell me what is wrong with it. I am
trying
to have a cell count "1" if a certain group of sponsors appear in the cell
I
have several sponsors in the same list. What I want to happen is when a
certain sponsor is chosen I want it to count as 1 in another box. I have
one
group say in cells E2:E5 and another group in E6:E10.
=IF(F4:F9=Lists!E13:E22, "1", IF(F4:F9=Lists!E2:E12, "0",
IF(F4:F9=Lists!E23:E30, "0")))
This is the formula I came up with for one cell in my Totals area.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
If statement or lookup statement not sure Renegade40 Excel Worksheet Functions 2 January 18th 09 06:11 AM
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM


All times are GMT +1. The time now is 10:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"