Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default i can't get this formula to work

i'm trying to write a formula where if the cell below it minus the active
cell is -21< x -23 then write one, else leave it blank.

so here's what i got so far, i think i'm just getting the parentheses wrong

=if((AND((c2-c1)*24)<-21,((c2-c1)*24)-23),1,"")

i tried writing a simpler formula along the same lines and this one works

=if((AND(j3<-21,j3-23)),1,"")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
Default i can't get this formula to work

Hi Kyle

Try
=IF(AND((C2-C1)*24<-21,(C2-C1)*24-23),1,"")

--
Regards
Roger Govier

kyle wrote:
i'm trying to write a formula where if the cell below it minus the active
cell is -21< x -23 then write one, else leave it blank.

so here's what i got so far, i think i'm just getting the parentheses wrong

=if((AND((c2-c1)*24)<-21,((c2-c1)*24)-23),1,"")

i tried writing a simpler formula along the same lines and this one works

=if((AND(j3<-21,j3-23)),1,"")

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default i can't get this formula to work

Kyle,

Try this

=IF(AND((C2-C1)*24<-21,(C2-C1)*24-23),1,"")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"kyle" wrote:

i'm trying to write a formula where if the cell below it minus the active
cell is -21< x -23 then write one, else leave it blank.

so here's what i got so far, i think i'm just getting the parentheses wrong

=if((AND((c2-c1)*24)<-21,((c2-c1)*24)-23),1,"")

i tried writing a simpler formula along the same lines and this one works

=if((AND(j3<-21,j3-23)),1,"")

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default i can't get this formula to work

thanks, that did it



"Roger Govier" wrote:

Hi Kyle

Try
=IF(AND((C2-C1)*24<-21,(C2-C1)*24-23),1,"")

--
Regards
Roger Govier

kyle wrote:
i'm trying to write a formula where if the cell below it minus the active
cell is -21< x -23 then write one, else leave it blank.

so here's what i got so far, i think i'm just getting the parentheses wrong

=if((AND((c2-c1)*24)<-21,((c2-c1)*24)-23),1,"")

i tried writing a simpler formula along the same lines and this one works

=if((AND(j3<-21,j3-23)),1,"")

.

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
formula to work in a 3-d reference with 2 work books capt c Excel Worksheet Functions 1 April 8th 09 08:04 PM
Sorting the cells of a formula causes the formula to not work Jake Excel Worksheet Functions 3 January 31st 09 04:42 AM
WHY doesn't formula work??? TSuraco Excel Discussion (Misc queries) 5 November 28th 07 08:25 PM
Why does this formula not work? dk_ Excel Discussion (Misc queries) 14 September 28th 06 09:18 PM
A search for $ in a formula use to work now it does not work JuneJuly Excel Discussion (Misc queries) 2 November 30th 05 10:13 PM


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