Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2017, 12:37 AM
H28Sailor H28Sailor is offline nested IF formula question Windows 7 32bit nested IF formula question Office 2007
Advanced Beginner
nested IF formula question
 
Join Date: Mar 2013
Posts: 55
H28Sailor is on a distinguished road
Default nested IF formula question

Hi



C2, D2.....L2 hold prices
N2 holds max of C2:L2
O2 holds min of C2:L2
P2 holds (N2-O2)/8

My formula in R2:-

=IF(C2=O2,0,IF(C2=N2,9,INT((C2-O2)*P2)))

but I get a zero when C2 does not equal either N2 or O2?

What am I doing wrong?

Last edited by H28Sailor; 05-12-2017 at 12:38 AM. Reason: correction
Reply With Quote
  #2  
Old 05-12-2017, 02:46 AM
xor xor is offline nested IF formula question Windows 10 nested IF formula question Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Cannot replicate that problem.
For me your formula works just fine.
Reply With Quote
  #3  
Old 05-12-2017, 09:04 AM
H28Sailor H28Sailor is offline nested IF formula question Windows 7 32bit nested IF formula question Office 2007
Advanced Beginner
nested IF formula question
 
Join Date: Mar 2013
Posts: 55
H28Sailor is on a distinguished road
Default

worksheet attached
Attached Files
File Type: xlsx testing.xlsx (9.0 KB, 14 views)
Reply With Quote
  #4  
Old 05-12-2017, 09:32 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline nested IF formula question Windows 7 64bit nested IF formula question Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Just remove the INT function =IF(C2=$O2,0,IF(C2=$N2,9,((C2-$O2)*$P2)))

It returns the integer part and as all your differences are lower than 1 you always get 0 which is the integer part of any number between 1 and 0
__________________
Using O365 v2503 - 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
  #5  
Old 05-12-2017, 01:56 PM
H28Sailor H28Sailor is offline nested IF formula question Windows 7 32bit nested IF formula question Office 2007
Advanced Beginner
nested IF formula question
 
Join Date: Mar 2013
Posts: 55
H28Sailor is on a distinguished road
Default

Thank you
Reply With Quote
  #6  
Old 05-12-2017, 11:01 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline nested IF formula question Windows 7 64bit nested IF formula question Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Most welcome
__________________
Using O365 v2503 - 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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
nested IF formula question Nested If Statements in Formula Field to Produce the Diffrnc in Years Between Today's & Entered Date mshu31 Word 1 02-09-2017 02:04 PM
nested formula using IF & AND paxon Excel 3 02-18-2016 05:32 AM
nested IF formula question Formula Question glhatch Excel 1 01-23-2015 04:13 PM
nested IF formula question Complex formula question diverdown87 Excel 7 10-21-2014 07:44 AM
Formula question H28Sailor Excel 4 08-20-2013 09:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:21 AM.


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