# To add 30mins to the folowing formula

Hi Experts,
I have the following formula below that an expert helped me with.
What I need to do now is if E5 = 1 then add 30mins to the answer from the below formula.
I have been trying for a while and cant seem to work it out. The formula below copies a time from another sheet if certin cells match by date etc.

Cheers
Rob.
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sr. System AnalystCommented:
try

=A2+IF(E5=1, (1/(24*60))*30,0)

where A2 is the result for your formula above...
Book1.xlsx
0
EngineerCommented:

+(e5=1)*30/24/60 to the end of the given formula
0
Author Commented:
Correct, but the formula and your formula need to be in the same cell eg C5.
I need to add 30mins to the formula result in that same cell.

Any ideas?
0
Author Commented:
Sorry, too slow on my part.....Thanks
0
Sr. System AnalystCommented:

(...existing formula...)+IF(E5=1, (1/(24*60))*30,0)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
when my formula returns a "" will it still try and add 30mins??
because once i inseerted your formula it returns "#####"
0
EngineerCommented:
Add the given addition before the LAST comma (,)
0
Author Commented:
thanks to both of you....im having a bad day sorry.

Cheers
Rob.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.