Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MartinW
 
Posts: n/a
Default Nesting IF function

Hi Group,

I'm having trouble nesting an IF function that I know is basic but I can't
get the right syntax.

D6 is a user input cell that will only contain either LH, RH or CL.

I need cell H10 to act as follows

If A10 doesn't equal 1 then return ""

If A10 equals 1 and D6 equals LH or RH then return B10*G10
but if D6 equals CL then return ""

Also will this work if I use data validation to make D6 a pull down list.

Thanks
Martin


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default Nesting IF function

Hi Martin,

=IF(A10<1,"",IF(D6=CL,"",B10*G10))

Cheers

--
macropod
[MVP - Microsoft Word]


"MartinW" wrote in message
...
Hi Group,

I'm having trouble nesting an IF function that I know is basic but I can't
get the right syntax.

D6 is a user input cell that will only contain either LH, RH or CL.

I need cell H10 to act as follows

If A10 doesn't equal 1 then return ""

If A10 equals 1 and D6 equals LH or RH then return B10*G10
but if D6 equals CL then return ""

Also will this work if I use data validation to make D6 a pull down list.

Thanks
Martin




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Nesting IF function

Hi
Try this:
=IF(A10<1,"",IF(OR(D6="LH",D6="RH"),B10*G10,""))

Andy.

"MartinW" wrote in message
...
Hi Group,

I'm having trouble nesting an IF function that I know is basic but I can't
get the right syntax.

D6 is a user input cell that will only contain either LH, RH or CL.

I need cell H10 to act as follows

If A10 doesn't equal 1 then return ""

If A10 equals 1 and D6 equals LH or RH then return B10*G10
but if D6 equals CL then return ""

Also will this work if I use data validation to make D6 a pull down list.

Thanks
Martin



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hans bal(nl)
 
Posts: n/a
Default Nesting IF function

=IF(A1=1,IF(OR(D6="LH",D6="RH"),B10*G10,""),"")

"MartinW" wrote:

Hi Group,

I'm having trouble nesting an IF function that I know is basic but I can't
get the right syntax.

D6 is a user input cell that will only contain either LH, RH or CL.

I need cell H10 to act as follows

If A10 doesn't equal 1 then return ""

If A10 equals 1 and D6 equals LH or RH then return B10*G10
but if D6 equals CL then return ""

Also will this work if I use data validation to make D6 a pull down list.

Thanks
Martin



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MartinW
 
Posts: n/a
Default Nesting IF function

I can't make sense of this. All three of those formulae look like they
should work but I can't get any of them to function, I just end up
with a blank cell. Any thoughts on what I might be doing wrong?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default Nesting IF function

Hmm,

Maybe we haven't understood your requirements. Perhaps you could restate
them?

Cheers

--
macropod
[MVP - Microsoft Word]


"MartinW" wrote in message
...
I can't make sense of this. All three of those formulae look like they
should work but I can't get any of them to function, I just end up
with a blank cell. Any thoughts on what I might be doing wrong?




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MartinW
 
Posts: n/a
Default Nesting IF function

Found the problem. Feel pretty stupid. Earlier when I was formatting I
merged C6 and D6, column C is very very narrow but nevertheless it
is the true destination of my target cell.

Thanks to All
Martin


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
Nesting Networkdays function inside and If function Addison Excel Worksheet Functions 2 April 13th 06 08:04 PM
How can I use Excel to solve an equation? titina Excel Worksheet Functions 4 April 11th 06 11:19 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 01:14 AM.

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

About Us

"It's about Microsoft Excel"