#### Multiple IF statement not working

```I have numbers in cells b2, d2,e2, and f2.  I am trying to write
statment that will increment number in cell b2 by one for each cell
(d2, e2, f2) that is greater than or equal to one.  The following
formula will not work if more than one cell (d2, e2, f2) has a zero in
it:

=IF(AND(D2>=1,E2>=1,F2>=1),B2+3,IF(OR(D2=0,E2=0,F2=0),B2+2,IF(AND
(D2=0,E2=0),B2+1,IF(AND(D2=0,F2=0),B2+1,IF(AND(E2=0,F2=0),B2+1,)))))

Does anyone know why?

```
 0
Anthony
12/17/2009 3:37:22 PM
excel.misc 78881 articles. 5 followers.

5 Replies
733 Views

Similar Articles

[PageSpeed] 19

```Try this
=B2+COUNTIF(D2:F2,">=1")

--
Wag more, bark less

"Anthony" wrote:

> I have numbers in cells b2, d2,e2, and f2.  I am trying to write
> statment that will increment number in cell b2 by one for each cell
> (d2, e2, f2) that is greater than or equal to one.  The following
> formula will not work if more than one cell (d2, e2, f2) has a zero in
> it:
>
> =IF(AND(D2>=1,E2>=1,F2>=1),B2+3,IF(OR(D2=0,E2=0,F2=0),B2+2,IF(AND
> (D2=0,E2=0),B2+1,IF(AND(D2=0,F2=0),B2+1,IF(AND(E2=0,F2=0),B2+1,)))))
>
> Does anyone know why?
>
> .
>
```
 0
Utf
12/17/2009 4:31:01 PM
```On Dec 17, 11:31=A0am, Brad <B...@discussions.microsoft.com> wrote:
> Try this
> =3DB2+COUNTIF(D2:F2,">=3D1")
>
> --
> Wag more, bark less
>
>
>
> "Anthony" wrote:
> > I have numbers in cells b2, d2,e2, and f2. =A0I am trying to write
> > statment that will increment number in cell b2 by one for each cell
> > (d2, e2, f2) that is greater than or equal to one. =A0The following
> > formula will not work if more than one cell (d2, e2, f2) has a zero in
> > it:
>
> > =3DIF(AND(D2>=3D1,E2>=3D1,F2>=3D1),B2+3,IF(OR(D2=3D0,E2=3D0,F2=3D0),B2+=
2,IF(AND
> > (D2=3D0,E2=3D0),B2+1,IF(AND(D2=3D0,F2=3D0),B2+1,IF(AND(E2=3D0,F2=3D0),B=
2+1,)))))
>
> > Does anyone know why?
>
> > .- Hide quoted text -
>
> - Show quoted text -

For some reason this did not work.  It gave me the following: #VALUE!
```
 0
Anthony
12/17/2009 6:04:40 PM
```On Dec 17, 11:31=A0am, Brad <B...@discussions.microsoft.com> wrote:
> Try this
> =3DB2+COUNTIF(D2:F2,">=3D1")
>
> --
> Wag more, bark less
>
>
>
> "Anthony" wrote:
> > I have numbers in cells b2, d2,e2, and f2. =A0I am trying to write
> > statment that will increment number in cell b2 by one for each cell
> > (d2, e2, f2) that is greater than or equal to one. =A0The following
> > formula will not work if more than one cell (d2, e2, f2) has a zero in
> > it:
>
> > =3DIF(AND(D2>=3D1,E2>=3D1,F2>=3D1),B2+3,IF(OR(D2=3D0,E2=3D0,F2=3D0),B2+=
2,IF(AND
> > (D2=3D0,E2=3D0),B2+1,IF(AND(D2=3D0,F2=3D0),B2+1,IF(AND(E2=3D0,F2=3D0),B=
2+1,)))))
>
> > Does anyone know why?
>
> > .- Hide quoted text -
>
> - Show quoted text -

I figured it our.  Sorry and thanks for your help.
```
 0
Anthony
12/17/2009 6:19:57 PM
```B2 must not have a value in it to get this message

What is in B2, D2, E2, F2?

or you can do this
=IF(ISNUMBER(B2),B2,0)+COUNTIF(B2:D2,">=1")
--
Wag more, bark less

"Anthony" wrote:

> On Dec 17, 11:31 am, Brad <B...@discussions.microsoft.com> wrote:
> > Try this
> > =B2+COUNTIF(D2:F2,">=1")
> >
> > --
> > Wag more, bark less
> >
> >
> >
> > "Anthony" wrote:
> > > I have numbers in cells b2, d2,e2, and f2.  I am trying to write
> > > statment that will increment number in cell b2 by one for each cell
> > > (d2, e2, f2) that is greater than or equal to one.  The following
> > > formula will not work if more than one cell (d2, e2, f2) has a zero in
> > > it:
> >
> > > =IF(AND(D2>=1,E2>=1,F2>=1),B2+3,IF(OR(D2=0,E2=0,F2=0),B2+2,IF(AND
> > > (D2=0,E2=0),B2+1,IF(AND(D2=0,F2=0),B2+1,IF(AND(E2=0,F2=0),B2+1,)))))
> >
> > > Does anyone know why?
> >
> > > .- Hide quoted text -
> >
> > - Show quoted text -
>
> For some reason this did not work.  It gave me the following: #VALUE!
> .
>
```
 0
Utf
12/17/2009 6:56:01 PM
```If you can, click the "Yes" button asking if the post answered the question...
--
Wag more, bark less

"Anthony" wrote:

> On Dec 17, 11:31 am, Brad <B...@discussions.microsoft.com> wrote:
> > Try this
> > =B2+COUNTIF(D2:F2,">=1")
> >
> > --
> > Wag more, bark less
> >
> >
> >
> > "Anthony" wrote:
> > > I have numbers in cells b2, d2,e2, and f2.  I am trying to write
> > > statment that will increment number in cell b2 by one for each cell
> > > (d2, e2, f2) that is greater than or equal to one.  The following
> > > formula will not work if more than one cell (d2, e2, f2) has a zero in
> > > it:
> >
> > > =IF(AND(D2>=1,E2>=1,F2>=1),B2+3,IF(OR(D2=0,E2=0,F2=0),B2+2,IF(AND
> > > (D2=0,E2=0),B2+1,IF(AND(D2=0,F2=0),B2+1,IF(AND(E2=0,F2=0),B2+1,)))))
> >
> > > Does anyone know why?
> >
> > > .- Hide quoted text -
> >
> > - Show quoted text -
>
> I figured it our.  Sorry and thanks for your help.
> .
>
```
 0
Utf
12/17/2009 7:01:03 PM

Similar Artilces:

Problem
Outlook 2007 stops working every time 10 seconds after I run it under Windows Vista. In the event viewer I have this: Faulting application OUTLOOK.EXE, version 12.0.4518.1014, time stamp 0x4542840f, faulting module ntdll.dll, version 6.0.6000.16386, time stamp 0x4549bdc9, exception code 0xc0000374, fault offset 0x000af1c9, process id 0xc30, application start time 0x01c747849b157af9. I tried to solve the problem with no success by doing this: 1. Reinstall/repair outlook 2007 2. disabled all the adding in Outlook 2007. Any idea how to solve it ? thanks ra294 Y.A Just guessing but, the...

I've got data copied into my spreadsheet that includes hyperlinks. Ther are thousands of these in a column. I can remove individually by right-clicking and selecting Hyperlink an Remove. I can then arrow down and do a control Y, cell by cell, What I want to do is highlight the column and be able tp remove th hyperlinks all at once. I've exhausted myself peering through knowlegebases and groups, bu cannot find any way to make this work. Thanks for any input you can provide -- Message posted from http://www.ExcelForum.com Hi one way: Use the following macro to remove hyperlinks...

Create a list with multiple criteria
I have a data base with 1,000's of addresses w/zipcodes (Sheet 1 columns A to E, E being zipcodes). After setting a base address I get all of the zipcodes within a given radius (in this case 70 zipcodes), listed in Sheet 2, Column A. Next, I use COUNTIF (in column B) to find how many addresses are in each zipcode, in this example there are 46 addresses within the 70 zipcodes. What I want to do is create a list in sheet three that will list each with the data from Sheet 1 columns A to E). Any help would be appreciated. Ronbo ...

'Microsoft Money has stopped working'
Running MS Money 2007, Windows Vista (home premium). Starting last night, directly after logging in (or working off line), I get an error 'Microsoft Money has stopped working' and money crashes; the problem details are below. Worked up until last night. I've tried system restore, uninstalling (including deleting money directory, and cleaning registry) and reinstalling, and the error persists. any suggestions? thanks, Problem signature: Problem Event Name: BEX Application Name: MSMoney.EXE Application Version: 16.0.0.1303 Application Timestamp: 459cb23b Fault Module...

Charting multiple multiples
Hopefully I can explain this in a way that will be understood. Data: Place A Place B Place C FWD Back FWD BACK FWD Back Org_1 1 2 3 2 1 3 Org_2 2 5 4 6 1 4 I would like to place the data so that FWD and Back data is stacked on top of each other in different colors, and placed in one row on a 3-D chart as Org-1 and a second row as Org_2. Any ideas? Thanks. If you arrange your data like this: Back FWD Org_1 Place A 2 1 Place B 2 3 Place C 3 1 Org_2 Place A 5 2 ...

Multiple Hyperlinks In Same Shape Doesn't Work
Can anyone tell me how I can get multiple hyperlinks in the same shape to work? I have no problem inserting the hyperlinks, but they all point to only one. I scoured these posts, and found this (http://groups.google.com/groups?q=hyperlink+group:microsoft.public.visio.*&hl=en&lr=&ie=UTF-8&oe=UTF-8&group=microsoft.public.visio.*&selm=3eea6467%241%40news.microsoft.com&rnum=2), which doesn't appear to work. Thanks in advance-- RAD Um, which version of Visio are you using? As far as I know, at least Visio 2002 and Visio 2003 support multiple hyperlinks. Can't...

Multiple Profiles, multiple accounts, multiple machine configuring?

Single click selects multiple cells
When clicking on a single cell multiple cells are selected. The one time solution for this is to zoom in or out. This is problematic as 60% seems to be the zoom that works most of the time but at this zoom level the cell contents do not display. The time lost and the frustration that builds is killing my productivity and office attitude. Please give all of us a permanet fix. -- Thanks Mike ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" butt...

microsoft outlook no longer working
I can't run outlook anymore for some strange reason When I try to it says outlook can't open the file containing the folders used to send and receive email messages and goes on to a screen asking for me to create a new personal folder or open the existing one when I try those options it doesn't work please help Thanks O o <anonymous@discussions.microsoft.com> wrote: > I can't run outlook anymore for some strange reason > When I try to it says outlook can't open the file > containing the folders used to send and receive email > messages and goes on to...

distributing data into multiple cells
hii i have to prepare an exel sheet of some 2000 products..i have to copy d data from the net and then prepare the sheet,with 4 different columns for 4 diff types of entries..now when i copy data nad paste is as text.it all goes in a single cell in a row .how can i distribute the data l into multiple cells????????? -- jaspreet ------------------------------------------------------------------------ jaspreet's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=23821 View this thread: http://www.excelforum.com/showthread.php?threadid=374772 can you show some samp...

ulead photo explorer 8.0 no longer works in windows vista
ulead photo explorer 8.0 used to work ok in windows vista. now it fails with a c++ runtime error. this occured just after today's microsoft windows update. looks like it "broke" the software. and so now i need an alternative. all i need is something that works a bit like ulead photo explorer - that is something to view, organise and print digial photos. something free would be nice, but it's ok if the cost is low. i don't need anything powerful. thanks a lot in advance for any suggestions. On Dec 12, 1:26=A0am, rpgs rock dvds <cccddd...@hotmail.co.uk&g...

Is there a way to sort multiple columns with a tab or something?
I have a 4 column spreadsheet. I want to be able to click the heading for each of the columns to hav them sort by that column if clicked. How do I do that -- Message posted from http://www.ExcelForum.com Hi why not used the soprt icon for this. Note: This could screw up your sorting if Excel does not recognize your database columns correctly -- Regards Frank Kabel Frankfurt, Germany > I have a 4 column spreadsheet. > > I want to be able to click the heading for each of the columns to have > them sort by that column if clicked. How do I do that? > > > --- > Mess...

e-mail send button not working
I have noticed in the past week that the send button on messages to contact in Outlook does not send the message. When I go to close the message it asks to 'save'. I click yes. it is 'saved' but the message is not sent. when I go to the Drafts folder the message is there. I open it and try to send and it doesn't send the message. any thoughts on what I could have changed to give me this problem? Gordon in Alaska ...

How do I send an email to multiple addresses having only the recipient see their own email address? Michelle wrote: > How do I send an email to multiple addresses having only > the recipient see their own email address? Put the addresses into the BCC: field. Note that many e-mail programs will decide such mails are spam though. >-----Original Message----- >How do I send an email to multiple addresses having only >the recipient see their own email address? >. Open your new email and go to tools, select recipient, when your address book opens select (highlight) the a...

Exchange 2000 Distribution Lists
Hello We are running an Exchange 2000 environment in Exchange Native Mode and Windows Mixed Mode. We just converted from Exchange 5.5 Is there any way to configure multiple people to be owners or editors of the distribution lists? This was possible in 5.5, but we cannot find a means of accomplishing this in 2000 Any help would be appreciated Thank yo Jason "Jason P.S." <jason.pruden-shebaylo@investorsgroup.com> wrote: >We are running an Exchange 2000 environment in Exchange Native Mode and Windows Mixed Mode. We just converted from Exchange 5.5. > >Is there any w...

multiple selection
How can I select multiple records into a list box? I want that for append identical records (for select records) in another table. Many thanks Florin Use a subform instead of a list box. In a subform bound to a related table, you can append as many rows as applicable. It is possible (but not simple) to use an unbound multi-select list box that is populated in the Current event of the form, and executes Append, Delete, and Update query statements based on the ItemsSelected if they are changed. You will also have to find a way to respond to the user "undoing" changes. -- Al...

Need to have a dropdown list containing multiple rows
I am setting up an form and need to create a dropdown list that will contain 8 sets of data. Each set needs to contain 3 rows of data (name, street address & city/state/zip. The goal is to allow the user to click onto the cell, see the dropdown and select which address set to use. This would then place the data into three rows suitable for mailing. I have never attempted anything like this and am in need of assistance. Thank you. --- Message posted from http://www.ExcelForum.com/ Pat What you ask is easily done using Data Validation drop-down list and a few Vlookups but........Ex...

Multiple domains #6
Hi, Having done some research I have found that it is possible to send and receive email from multiple domains with Exchange 2003. I have a few questions that I would like cleared up if anyone can help. 1. Is it really as simple as configuring a recipient policy for the new domain and then changing the mail record for that domain to point to the proper IP address? 2. If I set up a new account in AD, and need this account to be associated with the second email domain, will the default SMTP email be for the first domain? If so, can I just edit this directly? 3. If I set the default SMTP add...

Combine multiple tables into one
I took over a database in which the last person created a new table for everyday worth of data (ie. Feb-21-08 is named 022108). There are over 100 tables in the single database with the same columns and table attributes, I would like to combine all of these tables into one where I have a Date_Key field in place of the table name. I figured out how to query the table names using the following: SELECT MSysObjects.Name FROM MsysObjects WHERE (Left\$([Name],1)<>"~") AND (Left\$([Name],4) <> "Msys") AND (MSysObjects.Type)=1 ORDER BY MSysObjects.Name; Now I j...

forwarding mail to multiple external addresses
I have a user on our Exchange Server 2003 that wants his email to be forwarded to 2 different external email addresses and not have the original mail stored in his exchange mailbox at all. I can set this up to froward to only one external email address by creating a contact in Active Directory with an external email address and then forwarding to that contact. However, it won't allow me to forward to multiple contacts. Please help as this seems like a pretty common request from several users. I'm not sure, as I haven't tested it before, but you might be able to create a ...

Finding Data in multiple worksheets
Using Excel 2000, how can I find data in multiple worksheets; example: any number between 200 & 299 in 32 worksheets? If you mean you want to find a single number across 32 worksheets, group your worksheets (click on the first, ctrl-click on subsequent (or even shift-click)). Then Edit|Find But I think I'd use Jan Karel Pieterse's FlexFind: http://www.oaltd.co.uk/MVP/ If you meant you wanted to find all 100 numbers (200-299) in all 32 sheets, then I think I'd have a macro search for each number and report the results on a new worksheet. "mark@southwestconst.com&quo...

If Statement that Copies to another Sheet
I am not sure how to create an IF statement that does the following: If a cell is >1 then copy the contents of another cell onto another sheet. Can this be done? And does this make sense Thank you for your help!! :confused: --- Message posted from http://www.ExcelForum.com/ It can't be done - worksheet functions can only return values to their calling cells. However, you can put this in the cell in your second sheet: J1: =IF(Sheet1!A1>1, Sheet1!B1, "") which will display the contents of Sheet1!B1 if Sheet1A1 > 1, else will display a null string. In...

show multiple values that add to total in bar graph
Is there a way to show multiple values in a single bar (in a bar graph) that add up to a total (example: 127, 129, 87, 85, 60, 126, 89 add up to 703)? I want a sigle bar that goes to 703 but breaks the single bar down into these segments (preferrably by color showing the smaller segment amounts within the color. HELP!!!! Thanks! Hi, Is that not what the stacked column chart does? Cheers Andy Green Goose 89 wrote: > Is there a way to show multiple values in a single bar (in a bar graph) that > add up to a total (example: 127, 129, 87, 85, 60, 126, 89 add up to 703)? I > want...

IIF / OR
I want the OnPrint of a report to check three fields and run code if any ONE of the conditions is met: Iif ([MyTextOne]=1 OR [MyTextTwo]=2 OR [MyTextThree]=3) Then RunSomeCode Else RunOtherCode I thought of using Select Case and calling procedures as each condition is met: Select Case Me![MyTextOne] Case is = 1 Call Check2 Case else Stop End Select Check2 () Select Case Me![MyTextTwo] Case is = 2 Call Check3 Case else Stop End select Check3 () and so on......... It will work, but gets a bit too long as the test conditions increase. It gets just as long with nested select case or nest...

Localization with multiple string tables
The application has two string tables one for English and the other for Japanese. The IDs and Values are the same but only the captions are different. It seems that CString::LoadString does not load from the correct string table when i choose japanese from my regional settings on the control panel instead it loads english all the time. Is there any settings or configuration that i missed? Need ur help gurus >The application has two string tables one for English and the other >for Japanese. The IDs and Values are the same but only the captions >are different. It seems that CString::L...