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

Hi
I have got a problem with an If Statement that I am trying to create.
Cell A1 is a variable number (but I will use -24, for the example)

A3 = -9
A4 = -15
A5 = -3
A6 = -11
A7 = -7
A8 = -1
A9 = -13
A10 = -5
A11 = -17
A12 = -4
A13 = -6
A14 = -14
A15 = -12
A16 = -10
A17 = -2
A18 = -16
A19 = -8
A20 = -18

The formula that I need to create is basically the following that I need to
nest together.
If Cell A1 is higher than -18 (this is lower in negative form, -19 etc)
=IF(A1<-18,IF(SUM(A3-18)=A1,2,IF(SUM(A3-18)<A1,0))
If Cell A1 is Lower than -18 (this is higher in negative form, -17 etc)
=IF(A1-18,=IF(A3=<A1,1,IF(A3A1,0))

The final pieces of the Jigsaw a
If Cell A1 is equals to 1.
=IF(And(A1=1,A3=-18,-1,0)
If Cell A1 is equals to 2.
=IF(And(A1=2,A3=-18 or -17,-1,0)

I will then copy the formula down to A20

I hope that this makes sense

Thanks


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
Problem with IF statement Tanya Excel Worksheet Functions 9 July 1st 07 02:10 PM
problem with IF statement wolfpack95 Excel Discussion (Misc queries) 1 August 21st 06 08:36 PM
if statement problem ermeko Excel Worksheet Functions 4 September 10th 05 07:51 PM
If Statement Problem TB via OfficeKB.com Excel Worksheet Functions 2 June 29th 05 10:03 PM
IF statement problem Kalabalana Excel Worksheet Functions 4 November 24th 04 08:37 PM


All times are GMT +1. The time now is 09:04 PM.

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"