LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Tough formula problem

I have a spreadsheet which tracks employee transactions and times. In column
L, I have the following formula.
=IF($D2=13328000,$J3-$J2,IF($D2=13328100,$J3-$J2,IF($D2=13328200,$J3-$J2,IF($D2=13280300,$J3-$J2,IF($D2=13280800,$J3-$J2,IF($D2=13288100,$J3-$J2,IF($D2=13286500,$J3-$J2,"")))))))
In column D are different codes like 13286500 or 10051202. Sometimes some of
the codes get out of sequence which skews my results. The last part of the
formula is where this is happening IF($D2=13286500,$J3-J2,""). If everything
is done in the right sequence, it works fine, but sometimes they get out of
sequence. For it to work correctly, for example, cell D2 would be 13286500,
cell D3 would be 10051202 and cell D4 would be 10026100. When it gets out of
sequence, the value that should be in cell D3 would be before cell D2 in cell
D1 and cell D3 is now in D2. Is there something that I could add to my
existing formula that would calculate $J1-$J2 if 10051202 is the cell above
13286500 instead of below it? I know this is confusing and I hope I
explained it okay. A solution to this problem would be greatly appreciated.
Thank you
 
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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
formula percentage problem thinkpic New Users to Excel 4 November 2nd 05 08:04 PM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM


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