Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jhicsupt
 
Posts: n/a
Default Cell dependent on another

Need help with an If statement which refers to different sheets.

In Cell B2 is where I want the value returned
If Sheet1 B4 not equal to "pens", put "Not applicable" in cell B2
Otherwise, put the value of Sheet3 C12 in cell B2

Can I get help with this formula?

Thanks in advance
  #2   Report Post  
Richard Neville
 
Posts: n/a
Default

Try this: =IF(B4="pens",[contents of Sheet 3 C12],"Not applicable"). The
trick is that you can't use a "not equal to" value in an IF statement, so
you have to turn it around so the first IF possibility is positive (E6
equals "pens"), the second negative.

"jhicsupt" wrote in message
...
Need help with an If statement which refers to different sheets.

In Cell B2 is where I want the value returned
If Sheet1 B4 not equal to "pens", put "Not applicable" in cell B2
Otherwise, put the value of Sheet3 C12 in cell B2

Can I get help with this formula?

Thanks in advance



  #3   Report Post  
bj
 
Posts: n/a
Default

try in B2
=if(Sheet1!B4<"pens","Not applicable",Sheet3!C12)

"jhicsupt" wrote:

Need help with an If statement which refers to different sheets.

In Cell B2 is where I want the value returned
If Sheet1 B4 not equal to "pens", put "Not applicable" in cell B2
Otherwise, put the value of Sheet3 C12 in cell B2

Can I get help with this formula?

Thanks in advance

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
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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