A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

if-then functions



 
 
Thread Tools Display Modes
  #1  
Old May 14th, 2010, 08:16 PM posted to microsoft.public.excel.newusers
Becky
external usenet poster
 
Posts: 230
Default if-then functions

I have a two sheet workbook. If 'sheet 1 B7' contains a certain word I want
"Sheet2 B2' to return the value in 'Sheet 1 B8". Can I do this? How?
Thanx
  #2  
Old May 14th, 2010, 09:04 PM posted to microsoft.public.excel.newusers
Dave Peterson[_2_]
external usenet poster
 
Posts: 69
Default if-then functions

Type this formula in B2 of Sheet2:

=if(countif(Sheet1!b7,"*"&"certain"&"*")=0,"",shee t1!b8)

=countif() will treat the * as a wild card. So "certain" could be anywhere in
that B7 Cell.

On 05/14/2010 14:16, Becky wrote:
I have a two sheet workbook. If 'sheet 1 B7' contains a certain word I want
"Sheet2 B2' to return the value in 'Sheet 1 B8". Can I do this? How?
Thanx

  #3  
Old May 14th, 2010, 09:33 PM posted to microsoft.public.excel.newusers
Brad
external usenet poster
 
Posts: 943
Default if-then functions

=if('sheet1 B7'="Desired Word",'Sheet 1 B8","")
This has to be done in "Sheet2 B2"

Please note that there is normally a "!" between the sheet and the cell
location.

If you start by typing in the "If" statement and use the mouse to point to
the cells desired XL will put in the correct notation.

--
Wag more, bark less


"Becky" wrote:

I have a two sheet workbook. If 'sheet 1 B7' contains a certain word I want
"Sheet2 B2' to return the value in 'Sheet 1 B8". Can I do this? How?
Thanx

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:55 AM.


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