Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Modifying If Statement

Right now I have the formula =IF(Sheet1!A4="11",H4,""). I want to include
"12" in this formula so that if "11" or "12" is in cell A4 the contents of
cell H4 will appear in the cell where this formula resides. Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Modifying If Statement

Hi,

=IF(OR(Sheet1!A4=11,Sheet1!A4=12),H4,"")

Mike

"Workbook" wrote:

Right now I have the formula =IF(Sheet1!A4="11",H4,""). I want to include
"12" in this formula so that if "11" or "12" is in cell A4 the contents of
cell H4 will appear in the cell where this formula resides. Any thoughts?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Modifying If Statement

Try this:

=IF(OR(Sheet1!A4="11",Sheet1!A4="12"),H4,"")

Are you sure you mean "11" and "12" (in quotes) rather than just 11
and 12 ?

Hope this helps.

Pete

On Feb 4, 10:00*am, Workbook
wrote:
Right now I have the formula =IF(Sheet1!A4="11",H4,""). *I want to include
"12" in this formula so that if "11" or "12" is in cell A4 the contents of
cell H4 will appear in the cell where this formula resides. *Any thoughts? *


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Modifying If Statement

Hey,

Thanks for your feedback. Maybe I made a mistake or I am not giving good
instructions. It is not working. I wrote another post called Making Blank
Cells, I think that may be more specific as to what I am trying to do;perhaps
easier to.

Thanks,
Ed


"Mike H" wrote:

Hi,

=IF(OR(Sheet1!A4=11,Sheet1!A4=12),H4,"")

Mike

"Workbook" wrote:

Right now I have the formula =IF(Sheet1!A4="11",H4,""). I want to include
"12" in this formula so that if "11" or "12" is in cell A4 the contents of
cell H4 will appear in the cell where this formula resides. Any thoughts?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 121
Default Modifying If Statement

Good point regarding the quotes. I tried both ways with no luck. I think
maybe I didn't apply the formula correctly or what I am looking for is not
specific enough. I created another post called called Making Blank Cells, I
think its more specific regarding what I am trying to do;I think it will
probably be easier to figure out to. Thanks for your feedback.
Ed


"Pete_UK" wrote:

Try this:

=IF(OR(Sheet1!A4="11",Sheet1!A4="12"),H4,"")

Are you sure you mean "11" and "12" (in quotes) rather than just 11
and 12 ?

Hope this helps.

Pete

On Feb 4, 10:00 am, Workbook
wrote:
Right now I have the formula =IF(Sheet1!A4="11",H4,""). I want to include
"12" in this formula so that if "11" or "12" is in cell A4 the contents of
cell H4 will appear in the cell where this formula resides. Any thoughts?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Modifying If Statement

You're welcome, but it would be better to keep related things in the
same thread.

Pete

On Feb 4, 12:56*pm, Workbook
wrote:
Good point regarding the quotes. *I tried both ways with no luck. *I think
maybe I didn't apply the formula correctly or what I am looking for is not
specific enough. *I created another post called called Making Blank Cells, I
think its more specific regarding what I am trying to do;I think it will
probably be easier to figure out to. *Thanks for your feedback.
Ed



"Pete_UK" wrote:
Try this:


=IF(OR(Sheet1!A4="11",Sheet1!A4="12"),H4,"")


Are you sure you mean "11" and "12" (in quotes) rather than just 11
and 12 ?


Hope this helps.


Pete


On Feb 4, 10:00 am, Workbook
wrote:
Right now I have the formula =IF(Sheet1!A4="11",H4,""). *I want to include
"12" in this formula so that if "11" or "12" is in cell A4 the contents of
cell H4 will appear in the cell where this formula resides. *Any thoughts? *- Hide quoted text -


- Show quoted text -


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
modifying a string Jeff @ CI Excel Discussion (Misc queries) 6 September 25th 08 02:50 AM
Help Modifying this Formula .... Mhz New Users to Excel 8 July 30th 06 11:33 AM
Need help modifying a macro EAHRENS Excel Discussion (Misc queries) 13 March 31st 06 12:22 AM
Modifying an If Statement carl Excel Worksheet Functions 1 February 1st 06 08:12 PM
help Modifying ParTeeGolfer Excel Worksheet Functions 0 January 27th 05 10:07 PM


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