# Help writing formula

#### gaijinko

##### New Member
Hello,

I am just confused right now with a formula I'm trying to write. I can get a basic formula down, but when I try to add more, I get a "too many arguements" message.

Here's what I want to do: If A1<>0 and b1=0 then "Enter Data" else "OK" and IF A1=0 and B1<>0 then "Enter Data" else "OK", IF A1=0 and B1=0 then leave cell blank.

Here's as much as I can get to work: =IF(A1<>0,IF(B1=o,"Enter B1","OK"))

Basically I need data in both cells A1 and B1 and need to flag my users who are only filling in one of the two cells to enter in both. There are about 1000 rows, so, I need some way for users to easily filter the rows with their missing data.

I've tried adding the other conditions in various ways using AND, OR and lots of IFs, but just get errors.

Is it possible and if it is, what is the correct sentence.

THANK YOU!!!!!!!!!!!

### Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

#### NBVC

##### Well-known Member
Try:

=IF(A1+B1=0,"",IF(OR(And(A1<>0,B1=0),And(A1=0,B1<>0)),"Enter Data","Ok"))

#### gaijinko

##### New Member

That worked out perfectly and I see where I was getting lost.

Regards,
Barbara

Replies
3
Views
281
Replies
6
Views
232
Replies
3
Views
135
Replies
8
Views
642
Replies
4
Views
1K

1,136,709
Messages
5,677,324
Members
419,688
Latest member
sarahmichelle

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back