IF AND NOT ISBLANK formula? Not really sure...

Chunky_22

Board Regular
Joined
May 19, 2004
Messages
149
Hi

I need to write a formula that says:

If cell H1 AND P1 both have something entered in them = False
If cell H1 AND P1 are both BLANK = FALSE
If cell H1 has something entered in it, but P1 is BLANK = TRUE

In the case of a False result, I will be just be returning a basic value, such as "Complete". In the case of a True result I will be running a basic formula (=A1-B1)

Is anyone able to assist me with this please? Many thanks in advance

B
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Rick,
Sorry, I hadn't really thought of that because it wouldn't happen (shouldn't happen!). It means someone has filled the sheet in wrong. I would say a False should be returned
Thanks
 
Upvote 0
Hi Rick,
Sorry, I hadn't really thought of that because it wouldn't happen (shouldn't happen!). It means someone has filled the sheet in wrong. I would say a False should be returned
Thanks

This should do what you asked for...

=IF(AND(LEN(H1)>0,LEN(P1)=0),A1-B1,"Complete")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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