Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dsb dsb is offline
external usenet poster
 
Posts: 3
Default Search one column return value from another

I have three columns, start date, end date and event ID. The event ID
repeats, so the start and end date look like this:

eventid start_date end_date
100 1/1/07 1/1/07(i know it looks odd but this is the way it is)
100 1/2/07 1/2/07
100 1/3/07 1/3/07

What I want to do is search the number of eventid's and return the last end
date in the event id's. Where from the above output I could get:

start_date = 1/1/07
end_date = 1/3/07

I have looked at the LOOKUP command and tried an IF statement but that
doesnt seem to work. I think I need to compare values but not sure how, so
as long as eventid = 100 nothing is returned but once no longer = 100, the
last date is returned.

Let me know if I can provide clarification.

TIA
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
Search between dates & return other column sonic-the-mouse[_2_] Excel Worksheet Functions 8 June 10th 09 01:06 PM
Return a column value from a horizontal search Spag Excel Worksheet Functions 8 May 21st 09 08:42 AM
Search a column for values, return a value from adj column Adam Excel Worksheet Functions 2 June 18th 08 08:35 AM
Search a column for a value and return T or F CraigMacE Excel Discussion (Misc queries) 2 January 12th 08 09:44 PM
URGENT -- search in string for a value in another column, if found, return value from next column samkshah Excel Programming 4 October 3rd 05 04:13 PM


All times are GMT +1. The time now is 06:57 AM.

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"