excel formula for if 2 new conditions are satisfied

vas6566

New Member
Joined
Sep 24, 2019
Messages
20
Office Version
  1. 2010
Platform
  1. Windows
Hi, HAPPY NEW YEAR. I have come back to you after 2019 with a mild hiccup in creating one excel formula perfectly. Hope you can resolve it. I need a suitable formulae for the following subject.

IF cell B3 contains the value "A", at the same time only if cell H3 has a value greater than zero, it should return D3+E3-G3. that is if H3 has no value or its value is less than zero, no result is required. Here 2 conditions need to be fulfilled, the value in B3 should be exactly "A" and at the same time value in H3 should numeric value more than 0, if these two conditions are satisfied i need the value of D3+E3-G3, if these two conditions are not satisfied no value is required in the formula cell ( not necesary to add D3 and E3 and less G3 ). The following table may be self explanatory. pls respond , thank in advance

PARTICULARSUNITNet Block as per B/S- 01.04.2022Gross Block_AYM_ 1.4.2022AdditionsDepDeletionsNet Block as per B/S- 31-03-2023Gross Block_AYM_ 31.03.2023Result if formula is correct
Building-HosurA3,84,745.00500000100003,85,745.00formula required501000
Factory-Ayanambakkam New BuildingA9,44,195.0415000005500009,00,195.00formula required1555000
Factory Buildg - (Mogappair A10 & B8)M94,60,755.000094,60,755.00formula required0
Factory Building-Ayanambakkam - OldA1,90,120.001140000190120-formula required0
Factory- Building- Sipcot, VallamA25,50,000.0030000002000005000027,00,000.00formula required3150000
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Try:
Excel Formula:
=IF(AND(B3="A",H3>0),D3+E3-G3,"")
 
Upvote 0
Solution
Try:
Excel Formula:
=IF(AND(B3="A",H3>0),D3+E3-G3,"")
Hi, thanks a lot, it works perfectly. Really this a great help to the community. Thank you so much. please let me know what does the symbol , "") mean at the end of the formula.
 
Upvote 0
Hi, thanks a lot, it works perfectly. Really this a great help to the community. Thank you so much. please let me know what does the symbol , "") mean at the end of the formula.
You are welcome.

Every IF formula has 3 parts to it:
=IF(condition, what to return if condition is true, what to return if condition is false)

"" is just an empty string. So we are telling it to return the empty string if your condition is not satisfied, as you requested.
if H3 has no value or its value is less than zero, no result is required.
 
Upvote 0
You are welcome.

Every IF formula has 3 parts to it:
=IF(condition, what to return if condition is true, what to return if condition is false)

"" is just an empty string. So we are telling it to return the empty string if your condition is not satisfied, as you requested.
Very very clear explanation. :)(y)🤝
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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