Formula with IF & And if Blank then 0

Yogesh977

New Member
Joined
Nov 24, 2020
Messages
4
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Dear Expert,

Please help me with below formula in not able to capture formula if cell one cell or both cell is blank. for reference Image with formula attached and sheet as below

i need you help please help me if its possible for you all experts.
Thank for your support.

ABCDEFGHIJK
1​
StatusSr.No.My Tax NumberVendor Tax NumberProduct AmtTax %Central Tax @9%State Tax @9%Integrated Tax @18%Total Invoice AmtRemark
2​
Correct1st Formula2727100018%90900180if My tax and Vendor tax are same then Central and State tax calculation and Integrated tax 0 (this formula is correct)
3​
Correct2nd Formula2726100018%00180180if My tax and Vendor tax are Different then Central and State tax is "0" and Integrated tax calculated on Tax rate (this formula is correct)
4​
Not able to do3rd Formula27100018%00180180if My tax Number is Applicable and Vendor tax is Blank then Central, State tax and Integrated tax Should be "0", (this I'm not able to find how to do)
 

Attachments

  • Image Formula.jpeg
    Image Formula.jpeg
    65.2 KB · Views: 8
Sorry My fault:
Excel Formula:
=IF(OR(D2="",C2=""),0,IF(LEFT(C2,2)<>LEFT(D2,2),E2*F2,0)
Thanks you So much Maabadi all formula is correct its help me lot....i appreciate your Excel expertise Thank you so Much once again..

GST Formula.xlsx
ABCDEFGHIJK
1StatusSr.No.My Tax NumberVendor Tax NumberProduct AmtTax %Central Tax @9%State Tax @9%Integrated Tax @18%Total Invoice AmtThanks Giving
2Correct1st Formula18AABCU9603R1ZM18AABCU9603R1Z2100018%909001180Credit to @maabadi
3Correct2nd Formula18AABCU9603R1Z204AABCU9603R1ZV100018%001801180Credit to @maabadi
4Correct3rd Formula18AABCU9603R1Z2100018%0001000Credit to @maabadi
5Correct4th Formula100018%0001000Credit to @maabadi
Sheet2
Cell Formulas
RangeFormula
G2:G4G2=IF(LEFT(C2,2)=LEFT(D2,2),E2*F2/2,0)
H2:H4H2=IF(LEFT(C2,2)=LEFT(D2,2),E2*F2/2,0)
I2:I3I2=IF(OR(LEFT(C2,2)<>LEFT(D2,2),D2="",C2=""),E2*F2,0)
J2:J5J2=SUM(G2:I2)+E2
I4:I5I4=IF(OR(D4="",C4=""),0,IF(LEFT(C4,2)<>LEFT(D4,2),E4*F4,0))
G5G5=IF(OR(D5="",C5=""),0,IF(LEFT(C5,2)=LEFT(D5,2),E5*F5/2,0))
H5H5=IF(OR(D5="",C5=""),0,IF(LEFT(C5,2)=LEFT(D5,2),E5*F5/2,0))
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You're welcome.
Don't forget to tick solve tick at right of best solution post.
 
Upvote 0

Forum statistics

Threads
1,215,695
Messages
6,126,261
Members
449,307
Latest member
Andile

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