Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Tricky Formel (counting days in combination with lookup)

Hey Guys,
I try to figure out a formel which I need for counting the days between
days.
I have two tables with the following structure
2003 2004
Comp Est. Start Date Company Est. Start Date

BT 23/03/2003 Dell 22/04/2004
Cable 24/05/2003 BT 22/05/2004
Virgin 22/06/2003 Virgin 28/06/2004

What I want do do now is to count the days between the Estimated Start
Dates if a company is listed in 2003 and 2004 (BT and Virgin).
If the company is not listed in 2003 and 2004 the cell should be empty
(Cable)
I think the formule must contain vlookup sum and data array function.
The attachment contains the table.

Thank you in advance

Christoph

File Attached: http://www.excelforum.com/attachment.php?postid=320674 (book1.xls)

------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Tricky Formel (counting days in combination with lookup)

Christoph,

This should work if you name your 2003 range as YR03 and
your 2004 range as YR04.

=IF(ISERROR(VLOOKUP(A16,YR04,2,FALSE)-VLOOKUP
(A16,YR03,2,FALSE)),0,VLOOKUP(A16,YR04,2,FALSE)-VLOOKUP
(A16,YR03,2,FALSE))
-----Original Message-----
Hey Guys,
I try to figure out a formel which I need for counting

the days between
days.
I have two tables with the following structure
2003 2004
Comp Est. Start Date Company Est. Start Date

BT 23/03/2003 Dell

22/04/2004
Cable 24/05/2003 BT

22/05/2004
Virgin 22/06/2003 Virgin

28/06/2004

What I want do do now is to count the days between the

Estimated Start
Dates if a company is listed in 2003 and 2004 (BT and

Virgin).
If the company is not listed in 2003 and 2004 the cell

should be empty
(Cable)
I think the formule must contain vlookup sum and data

array function.
The attachment contains the table.

Thank you in advance

Christoph

File Attached: http://www.excelforum.com/attachment.php?

postid=320674 (book1.xls)

------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Tricky Formel (counting days in combination with lookup)

Christoph,

Sorry should reread before I post. A16 refers to a cell
that contains the Comp (Dell, Virgin, BT).

Hope this helps.

-----Original Message-----
Christoph,

This should work if you name your 2003 range as YR03 and
your 2004 range as YR04.

=IF(ISERROR(VLOOKUP(A16,YR04,2,FALSE)-VLOOKUP
(A16,YR03,2,FALSE)),0,VLOOKUP(A16,YR04,2,FALSE)-VLOOKUP
(A16,YR03,2,FALSE))
-----Original Message-----
Hey Guys,
I try to figure out a formel which I need for counting

the days between
days.
I have two tables with the following structure
2003 2004
Comp Est. Start Date Company Est. Start

Date

BT 23/03/2003 Dell

22/04/2004
Cable 24/05/2003 BT

22/05/2004
Virgin 22/06/2003 Virgin

28/06/2004

What I want do do now is to count the days between the

Estimated Start
Dates if a company is listed in 2003 and 2004 (BT and

Virgin).
If the company is not listed in 2003 and 2004 the cell

should be empty
(Cable)
I think the formule must contain vlookup sum and data

array function.
The attachment contains the table.

Thank you in advance

Christoph

File Attached: http://www.excelforum.com/attachment.php?

postid=320674 (book1.xls)

------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from

http://www.ExcelForum.com/

.

.

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
Counting no of days of a specific range of days from a list Manikandan[_2_] Excel Discussion (Misc queries) 10 December 24th 09 12:26 PM
Tricky lookup problem dksaluki Excel Discussion (Misc queries) 4 November 27th 08 05:46 PM
If, Lookup, Match or a combination of all Beverly Darvill[_2_] Excel Worksheet Functions 3 July 22nd 08 11:26 AM
Lookup valid combination of multiple cells Gerard Excel Worksheet Functions 5 November 9th 07 10:32 AM
Tricky counting question Jay Weiss Excel Discussion (Misc queries) 2 May 1st 06 04:53 PM


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