if Formula

Geo Jul

Board Regular
Joined
Nov 19, 2022
Messages
125
Office Version
  1. 2016
Platform
  1. Windows
Dear All,​
Please I need your help with the formula in A2​
If B2 is empty, give me "revenue."​
If C2 is empty, give me "Expense."​
If Both B2 and C2 are empty, to stay Empty​
If Both B2 and C2 have an entry, give me "Wrong entry."​
Just a note​
Kindly note that I using 365 Vision but most employees at work use the 2016 version​
 

Attachments

  • Screenshot (918).png
    Screenshot (918).png
    24.7 KB · Views: 7

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try:

Excel Formula:
=IF(AND(B2="",C2=""),"",IF(AND(B2="",C2<>""),"revenue",IF(C2="","Expense","Wrong entry")))
 
Upvote 1
=IF(COUNT(B2:C2)=2,"Wrong Entry",IF(COUNT(B2:C2),IF(B2,"Expense","Revenue"),""))
 
Upvote 1
Try this in A2:

=CHOOSE((B2<>"")+2*(C2<>"")+1,"","Expense","Revenue","Wrong entry")
 
Upvote 1
Solution

Forum statistics

Threads
1,215,329
Messages
6,124,301
Members
449,149
Latest member
mwdbActuary

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