Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default IF question complicated

Hi there hoping someone can help.
My documents looks something like this.

Begin End C this formula will be put in c1
1 1 If(a11,b1<"",b1 else go down the
column until you find a number and put it in C1 so that it
2 ***I want to be able to but begin
and end time on the same line so I can manipulate the data later.
3
4 2
5 1
6
7 3
8 2
9
10
11 4

Hope this is clear it would need to look like this
Begin End C
1 1 2
2
3
4 2
5 1 3
6
7 3
8 2 4
9
10
11 4


Thank you for reading this....
CD
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF question complicated

Assume that the source data posted is within A1:B11
In C1: =COUNTIF($A$1:A1,"<")
In D1: =COUNTIF($C$1:C1,C1)
In E1, array-entered (press CTRL+SHIFT+ENTER to confirm the formula):
=IF(D1=1,INDEX(B$1:B$11,MAX(IF(C$1:C$11=C1,ROW(C$1 :C$11)))),"")
Copy C1:E1 down to E11. This "pulls" up col B's data (End) and aligns it
exactly as sought with col A's data (Begin) in col E.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
wrote in message
...
Hi there hoping someone can help.
My documents looks something like this.

Begin End C this formula will be put in c1
1 1 If(a11,b1<"",b1 else go down the
column until you find a number and put it in C1 so that it
2 ***I want to be able to but begin
and end time on the same line so I can manipulate the data later.
3
4 2
5 1
6
7 3
8 2
9
10
11 4

Hope this is clear it would need to look like this
Begin End C
1 1 2
2
3
4 2
5 1 3
6
7 3
8 2 4
9
10
11 4



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default IF question complicated

On Jan 22, 8:20*pm, "Max" wrote:
Assume that the source data posted is within A1:B11
In C1: =COUNTIF($A$1:A1,"<")
In D1: =COUNTIF($C$1:C1,C1)
In E1, array-entered (press CTRL+SHIFT+ENTER to confirm the formula):
=IF(D1=1,INDEX(B$1:B$11,MAX(IF(C$1:C$11=C1,ROW(C$1 :C$11)))),"")
Copy C1:E1 down to E11. This "pulls" up col B's data (End) and aligns it
exactly as sought with col A's data (Begin) in col E.
--
Max
Singaporehttp://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
wrote in message

...



Hi there hoping someone can help.
My documents looks something like this.


* * * Begin * * End * * * * * *C *this formula will be put in c1
1 * * 1 * * * * * * * * * * * * *If(a11,b1<"",b1 else go down the
column until you find a number and put it in C1 so that it
2 * * * * * * * * * * * * * * * * ***I want to be able to but begin
and end time on the same line so I can manipulate the data later.
3
4 * * * * * * * * * 2
5 * * *1
6
7 * * * * * * * * * 3
8 * * *2
9
10
11 * * * * * * * * *4


Hope this is clear it would need to look like this
* * * Begin * * End * * * * * *C
1 * * 1 * * * * * * * * * * * * * * * 2
2
3
4 * * * * * * * * * 2
5 * * *1 * * * * * * * * * * * * * * *3
6
7 * * * * * * * * * 3
8 * * *2 * * * * * * * * * * * * * * *4
9
10
11 * * * * * * * * *4- Hide quoted text -


- Show quoted text -


Thank you sooo much you are a genius.... It works I didn't thinkt his
was possible. Thanks again for your time.
  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF question complicated

Welcome, and thanks for feeding back.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
wrote
Thank you sooo much you are a genius.... It works I didn't think this
was possible. Thanks again for your time.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default IF question complicated

Hello,

Array-enter into C1:
=IF(ISBLANK(A1),"",INDEX(B2:B$65536,MATCH(FALSE,IS BLANK(B2:B$65536),
0)))

Regards,
Bernd
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
Complicated FV Question Emma Hope Excel Worksheet Functions 5 October 18th 08 04:00 AM
Complicated question, for me anyway! :) Peter Doak Excel Worksheet Functions 2 March 18th 07 08:34 PM
Complicated question Jasdf Excel Discussion (Misc queries) 1 November 8th 06 01:08 PM
Complicated Question kyrospeare Excel Worksheet Functions 5 April 27th 06 02:45 AM
Complicated question... ozdemir Excel Worksheet Functions 3 December 7th 05 09:37 PM


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