Takeaway a value or set a value to 0 depending on text entered into another cell.

Luke1690

Board Regular
Joined
Jul 26, 2022
Messages
106
Office Version
  1. 2016
Platform
  1. Windows
Hi,

please can someone help me with this.
i have created a holiday planner and when dates from and to are entered it auto populates the amount of days taken between the dates and shows them in a range on the same row lets say ($A3)
it then takes the days used and takes it from there total holiday allowance.

Now the manger can go into the same document and review the holidays by selecting a Accept or Reject from a drop down in ($E3)


(What I'm looking for is IF Rejected has been chosen it sets the Value of ($A3) back to Zero)

Thanks Guys
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
What is the current value of $A3?

Can you post some rows of sample data along with expected results?
 
Upvote 0
Maybe
Fluff.xlsm
ABCDE
1
2325/03/202327/03/2023
3001/04/202307/04/2023Rejected
Main
Cell Formulas
RangeFormula
A2:A3A2=IF(E2="Rejected",0,C2-B2+1)
 
Upvote 0
Maybe
Fluff.xlsm
ABCDE
1
2325/03/202327/03/2023
3001/04/202307/04/2023Rejected
Main
Cell Formulas
RangeFormula
A2:A3A2=IF(E2="Rejected",0,C2-B2+1)
Sorry for the late reply this worked thanks.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,635
Members
449,043
Latest member
farhansadik

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