simple formula IF based on value "0" doesn't work

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,429
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I try designing formula by IF function but doesn't work my formula in column g based on column e if is column e = - then show the result in column g "paid" and if column e = numbers then show "unpaid

note : I exchange "- " instead of 0 from bar ribbon by formatting 0;-0;-;@
VBA Code:
=IF(E2<>"0";"paid";"unpaid")
ws.xlsm
ABCDEFG
1datenameinv nocasepaid remainedcase
201/10/2020alias123paid-2200paid
302/10/2020omaras124unpaid-1232paid
403/11/2020aliasd123paid 22264paid
504/11/2020omarasd124unpaid-264paid
605/11/2020mahmoudasd125paid 1000264paid
706/12/2020khalidasd126unpaid-264paid
807/12/2020ahmedasd127paid 1000264paid
908/12/2020muneerasd128unpaid-264paid
10
source
Cell Formulas
RangeFormula
G2:G9G2=IF(E2<>"0","paid","unpaid")
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about
Excel Formula:
=IF(E2=0,"paid","unpaid")
 
Upvote 0
Solution
so the numbers should not put into quotes mark
this works many thanks
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,780
Messages
6,121,522
Members
449,037
Latest member
tmmotairi

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