Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I write this formula

Hi I am trying to write a formula that has a few criteria and results.

I need a formula in cell K7 (2005): if cell D6 = "Off" and E6 = "2005" to
return a value of "0", but if cell D6 = "On" and E6 = "2005" the value from
the cell K7 (one other tab in workbook).

To complicate, in cell in cell J7 (2004): if cell D6 = "Off" and E6 =
"2005" to return the value from the cell J7 (one other tab in workbook), but
if cell D6 = "On" and E6 = "2005" the value from the cell J7 (one other tab
in workbook).

A D E J K L
Row 6 500105 OFF/ON 2005 2004 2005 2006
Row 7 formula formula formula

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default How do I write this formula

that could just be a nested if:

=IF(AND(D6="Off",E6=2005),0,IF(AND(D6="On",E6=2005 ),K7,IF(AND(D6="Off",E6=2005),J7,IF(AND(D6="On",E6 =2005),J7))))

Although, I think one of these should be L7, not sure which.

"Jill_" wrote:

Hi I am trying to write a formula that has a few criteria and results.

I need a formula in cell K7 (2005): if cell D6 = "Off" and E6 = "2005" to
return a value of "0", but if cell D6 = "On" and E6 = "2005" the value from
the cell K7 (one other tab in workbook).

To complicate, in cell in cell J7 (2004): if cell D6 = "Off" and E6 =
"2005" to return the value from the cell J7 (one other tab in workbook), but
if cell D6 = "On" and E6 = "2005" the value from the cell J7 (one other tab
in workbook).

A D E J K L
Row 6 500105 OFF/ON 2005 2004 2005 2006
Row 7 formula formula formula

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
I need to Write a Formula Mert6 Excel Worksheet Functions 1 January 24th 08 07:05 PM
How do I write this formula billy boy Excel Discussion (Misc queries) 3 March 29th 07 07:38 PM
How to write this formula? Rory Excel Discussion (Misc queries) 6 April 25th 06 06:53 PM
how to write a formula grammy2 New Users to Excel 2 August 30th 05 02:06 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM


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