Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
lee lee is offline
external usenet poster
 
Posts: 184
Default length Calcs

I have a column of 20 cells that have IF statements in them. The if
statement is such:

=(IF('A-V Input'!C5=0,0,IF(('A-V Input'!C4-'A-V
Input'!C5)/120,('A-V Input'!C4-'A-V Input'!C5)/12,(('A-V Input'!C4-'A-V
Input'!C5)/12)*-1)))+(IF('A-V Input'!D5=0,0,IF(('A-V Input'!D4-'A-V
Input'!D5)/120,('A-V Input'!D4-'A-V Input'!D5)/12,(('A-V Input'!D4-'A-V
Input'!D5)/12)*-1)))

I use it to calculate distance from points in a X,Y
corridinate system from AutoCAD. What I need to know is how to check if the
cell above the last cell has a distance in it if it doesn't move to the next
cell above the previous cell to check it etc... when it encounters a cell
that has a number in it, the cell would calculate the distance back to the
origin. I could write a another IF statement but I think it would be to
long.
any help would be greatly welcomed

Lee

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default length Calcs

Try using the "Is" function, look in msexcel help

If (IsNumeric(cell(1,1).value),...

"Lee" wrote:

I have a column of 20 cells that have IF statements in them. The if
statement is such:

=(IF('A-V Input'!C5=0,0,IF(('A-V Input'!C4-'A-V
Input'!C5)/120,('A-V Input'!C4-'A-V Input'!C5)/12,(('A-V Input'!C4-'A-V
Input'!C5)/12)*-1)))+(IF('A-V Input'!D5=0,0,IF(('A-V Input'!D4-'A-V
Input'!D5)/120,('A-V Input'!D4-'A-V Input'!D5)/12,(('A-V Input'!D4-'A-V
Input'!D5)/12)*-1)))

I use it to calculate distance from points in a X,Y
corridinate system from AutoCAD. What I need to know is how to check if the
cell above the last cell has a distance in it if it doesn't move to the next
cell above the previous cell to check it etc... when it encounters a cell
that has a number in it, the cell would calculate the distance back to the
origin. I could write a another IF statement but I think it would be to
long.
any help would be greatly welcomed

Lee

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
Percentage Calcs Muskoka83 Excel Discussion (Misc queries) 1 May 17th 10 11:35 PM
Length that falls within a length interval? Igorin Excel Worksheet Functions 4 November 20th 08 06:10 PM
What are the calcs in PMT Micky G Excel Worksheet Functions 7 November 22nd 07 07:31 PM
Validation length, Range length I think I need to rephrase the question Excel Discussion (Misc queries) 5 September 17th 07 06:29 AM
Time calcs srb Excel Discussion (Misc queries) 1 April 5th 06 07:04 AM


All times are GMT +1. The time now is 12:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"