#1   Report Post  
Posted to microsoft.public.excel.misc
koba
 
Posts: n/a
Default If formula


Hi all

I need help with a basic formula

if cell b10 or then display b1, otherwise display a1. This bit is
easy, but the chanllange comes when some of the cells in b contain the
word "Leave". How do i add the second bit in the formula

thanks for the help

andrew


--
koba
------------------------------------------------------------------------
koba's Profile: http://www.excelforum.com/member.php...o&userid=28639
View this thread: http://www.excelforum.com/showthread...hreadid=491687

  #2   Report Post  
Posted to microsoft.public.excel.misc
koba
 
Posts: n/a
Default If formula


if the cell contains the word leave then display a1.

sorry forgot that bit

andrew


--
koba
------------------------------------------------------------------------
koba's Profile: http://www.excelforum.com/member.php...o&userid=28639
View this thread: http://www.excelforum.com/showthread...hreadid=491687

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default If formula

=if(b1="leave",a1,b1)
???

or maybe...

=if(or(b10,b1="Leave"),b1,a1)



koba wrote:

if the cell contains the word leave then display a1.

sorry forgot that bit

andrew

--
koba
------------------------------------------------------------------------
koba's Profile: http://www.excelforum.com/member.php...o&userid=28639
View this thread: http://www.excelforum.com/showthread...hreadid=491687


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Cutter
 
Posts: n/a
Default If formula


I assume you currently have:
=IF(B10,B1,A1)

Change it to:
=IF(AND(B10,B1<"Leave"),B1,A1)


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=491687

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
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 09:50 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"