Help writing formula

gaijinko

New Member
Joined
Dec 22, 2004
Messages
18
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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try:

=IF(A1+B1=0,"",IF(OR(And(A1<>0,B1=0),And(A1=0,B1<>0)),"Enter Data","Ok"))
 
Upvote 0
THANKS! for your solution and very quick reply.

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

Regards,
Barbara
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,462
Members
448,965
Latest member
grijken

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top