Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2016, 07:56 AM
c0sm0s c0sm0s is offline how to get formula to work that shows a - when the answer should be 0 Windows 7 64bit how to get formula to work that shows a - when the answer should be 0 Office 2010 64bit
Novice
how to get formula to work that shows a - when the answer should be 0
 
Join Date: Sep 2016
Posts: 3
c0sm0s is on a distinguished road
Default how to get formula to work that shows a - when the answer should be 0

Hi trying to get a formula to work in E3, E4, E5, E6,E7 & so on



the formula is I think correct for E3, E5, E7
=IF($A3="","",IF(D3=0,B3-C3,IF(D3>=0,B3+D3-C3)))

the problem I'm having is that E4, E6 show a - when the answer should be 0

I'm new to excel and don't know how I can over come this issue

If anyone can help I'd be grateful
Attached Files
File Type: xlsx test 3.xlsx (9.8 KB, 12 views)
Reply With Quote
  #2  
Old 09-19-2016, 08:35 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline how to get formula to work that shows a - when the answer should be 0 Windows 7 64bit how to get formula to work that shows a - when the answer should be 0 Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

In your sheet you indicate that E4 "should show a 0 if B4 = 0
Why is that? There is no mention of B4 in the formula except in the calculation if D4>0 ?

EDIT Should also E5 then not be =0 ?
What is the logic?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 09-19-2016, 08:44 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline how to get formula to work that shows a - when the answer should be 0 Windows 7 64bit how to get formula to work that shows a - when the answer should be 0 Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Also note that IF(D3=0,B3-C3,IF(D3>=0,B3+D3-C3)) is the same as IF(D3>=0,B3+D3-C3,...)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 09-26-2016, 03:35 AM
c0sm0s c0sm0s is offline how to get formula to work that shows a - when the answer should be 0 Windows 7 64bit how to get formula to work that shows a - when the answer should be 0 Office 2010 64bit
Novice
how to get formula to work that shows a - when the answer should be 0
 
Join Date: Sep 2016
Posts: 3
c0sm0s is on a distinguished road
Default

Hi sorry for the late reply, I've been on holiday.

I'm new to excel so for me it's trial & error.

I'm trying to get the answer in column e3:E8

for row 4
If there is a 0 in column B4 ( no hours carried over from the previous financial year )
& they've had 4 hours of lessons in column C4 but they didn't block book any hours so D4=0, then the answer in column E4 should be 0 but it shows as -4. when I'm wanting the answer to show as a 0

in row 5 the person has no hours carried over from the previous financial year B5, but they have 4 hours of lessons C5 and they've block booked 10 lessons D5 so the remaining block booked hours show as 6 in E6 so that's correct.

I just can't get the answer to show as a 0 in B4 or B6

I don't know how to achieve this

Kind Regards
Reply With Quote
  #5  
Old 09-26-2016, 07:27 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline how to get formula to work that shows a - when the answer should be 0 Windows 7 64bit how to get formula to work that shows a - when the answer should be 0 Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

=IF($A3="";"";IF(AND(B3=0;D3=0);0;B3+D3-C3))

Drag down as needed

Is this better ? ( replace ; with , in the formula please)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 09-28-2016, 06:08 AM
c0sm0s c0sm0s is offline how to get formula to work that shows a - when the answer should be 0 Windows 7 64bit how to get formula to work that shows a - when the answer should be 0 Office 2010 64bit
Novice
how to get formula to work that shows a - when the answer should be 0
 
Join Date: Sep 2016
Posts: 3
c0sm0s is on a distinguished road
Default

Hi

This works great :-) Thank you for your help, I really appreciate it. Now I can get on and hopefully finish this piece of work :-)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
formula does not work properly msnarayanan Excel 2 08-12-2015 12:40 AM
how to get formula to work that shows a - when the answer should be 0 Formula for cum work in Project 2003 pwhill Project 5 11-09-2014 03:22 PM
how to get formula to work that shows a - when the answer should be 0 Sr. Citizen Question, Please: WORD Shows Blank, But Notepad Shows "Gibberish" ? Robert11 Word 3 08-12-2013 12:35 PM
how to get formula to work that shows a - when the answer should be 0 Autosum pastes formula and not answer London_msforum Word 3 08-02-2013 05:08 PM
how to get formula to work that shows a - when the answer should be 0 Excel 2010- What does this formula mean and how does it work dangoodwin1 Excel 1 10-31-2012 09:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft