Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2013, 02:23 AM
Ohrringding Ohrringding is offline function in "value_if_true" Windows XP function in "value_if_true" Office 2007
Novice
function in "value_if_true"
 
Join Date: Sep 2013
Posts: 1
Ohrringding is on a distinguished road
Default function in "value_if_true"

Hi everyone,

I'm trying to use the IF function and I would like Excel to calculate the solution, if the logical test gives back TRUE. So I don't want to get back a set value but rather the solution of another function.



I tried
=IF((ROW(B11)-10)*$G$2<=A11<((ROW(B11)-10)+0.5)*$G$2,"=$G$4*SIN(2*PI()*$G$3*A11)",0)

(if the given value is between N*G2 and (N+0.5)*G2 (needed to improvise the N) it should use the given value to calculate the solution, else 0)

Is there any possibility to get back the solution of a function instead of a value?
Any help would be highly appreciated, I don"t know where to look anymore.

Thanks in advance!
Ohrringding
Reply With Quote
  #2  
Old 09-02-2013, 07:51 PM
BobBridges's Avatar
BobBridges BobBridges is offline function in &quot;value_if_true&quot; Windows 7 64bit function in &quot;value_if_true&quot; Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Sure, it is. I see two problems with your attempt (and I don't promise there aren't others):

1) Your condition; it's in the form lower <= A11 < upper. I'm guessing you mean that A must be between those two values, but Excel doesn't understand that syntax. Use this:
Code:
AND((ROW(B11)-10)*$G$2<=A11,A11<(ROW(B11)-10+0.5)*$G$2)
(and I eliminated one unnecessary set of parens, but did not combine the terms; feel free to change it back if the parens make you more comfortable).

2) Your "True" value: eliminate the quote marks and the equal sign (which is needed only to start the whole formula, not for each part.

Combined, then, the whole thing should read
Code:
=IF(AND((ROW(B11)-10)*$G$2<=A11,A11<(ROW(B11)-10+0.5)*$G$2),$G$4*SIN(2*PI()*$G$3*A11),0)
Check to be sure I didn't accidentally change something.
Reply With Quote
Reply

Tags
if function



Similar Threads
Thread Thread Starter Forum Replies Last Post
Office "version" function – what does it do? eNGiNe Office 0 06-10-2013 01:00 AM
Chart needs #N/A, SLOPE function needs "q" ue418 Excel 0 10-16-2012 01:46 PM
function in &quot;value_if_true&quot; How to "deactivate" the Excel's SAVE function KIM SOLIS Excel 1 11-05-2011 01:57 AM
Error: "The function you are attempting to run contains macros" Fadi Word 1 11-01-2011 05:25 AM
function in &quot;value_if_true&quot; How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:51 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