Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default IF Function - formula creation

I am trying to do a formula that will pull a value from a cell if two
conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default IF Function - formula creation

You need to specify what the cell should be if the conditions are not met.
Also the brackets are in the wrong place and the single quotes should be
double ones.
If it has to blank, use

IF(AND(D9="X",F9="R"),AB9,"")

--
Kind regards,

Niek Otten

"emily's excel" <emily's wrote in message
...
I am trying to do a formula that will pull a value from a cell if two
conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default IF Function - formula creation

try this

=IF(AND(D9="X",F9="R"),AB9,"")

--


Gary


"emily's excel" <emily's wrote in message
...
I am trying to do a formula that will pull a value from a cell if two
conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
Any suggestions?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default IF Function - formula creation

The "and" function is missing a set of parens. Your formula should read:

IF(AND((D9='X'),(F9='R')),AB9)

I also recommend the you complete the else part of the if statement:

IF(AND((D9='X'),(F9='R')),AB9,0)

--
Please let the group know if this answered your question.


Stewart Rogers
DataSort Software, L.C.


"emily's excel" wrote:

I am trying to do a formula that will pull a value from a cell if two
conditions are present. I have created IF(AND(D9='X'),(F9='R'),AB9)
I am getting TRUE text....I want the value in AB9 ( 36) to appear in cell
Any suggestions?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spreadsheet Function creation? jkuhne Excel Worksheet Functions 1 November 21st 07 03:13 PM
Syntax for Info or Cell function for xl. file creation date driller Excel Worksheet Functions 5 January 29th 07 07:51 PM
Function Creation teresa Excel Programming 7 April 6th 05 03:39 PM
Function Library Creation AndyF[_2_] Excel Programming 0 December 30th 03 06:59 PM
Matrix Multiplication Function creation Gabriel[_3_] Excel Programming 1 December 16th 03 04:39 PM


All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"