Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 85
Default Is it possible to shorten this LOOKUP Formula?

I have 3 groups of Drivers, all of them work a for day work week. Group 1
works Monday-Thursday, 2 works Tuesday-Friday, and 3 works Friday, Saturday,
Sunday, Monday. Group 1 with Friday off has assignment numbers of 900-949, 2
with Monday off has 950-999, 3 does 900-949 on Friday and 950-999 on Monday.
(The weekend numbers are totally different and not included in this process).
On my spread sheet I use these numbers in column A to time track the drivers
as they pass various locations. Column H is where I place the names of the
drivers. I have H set to change names for the different days of the week.
I'm wondering if I can shorten this formula, by using an abbreviation.
Weekday, Mon-Thur, something like that?


900-949 Fridays off;

=IF($A$1="Monday",LOOKUP(A3,Feeder!$A$2:$C$83),"") &IF($A$1="Tuesday",LOOKUP(A3,Feeder!$A$2:$C$83),"" )&IF($A$1="Wednesday",LOOKUP(A3,Feeder!$A$2:$C$83) ,"")&IF($A$1="Thursday",LOOKUP(A3,Feeder!$A$2:$C$8 3),"")&IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$2 2),"")


950-999 Mondays off;


=IF($A$1="Monday",LOOKUP(A41,Feeder!$H$24:$I$43)," ")&IF($A$1="Tuesday",LOOKUP(A41,Feeder!$A$2:$C$83) ,"")&IF($A$1="Wednesday",LOOKUP(A41,Feeder!$A$2:$C $83),"")&IF($A$1="Thursday",LOOKUP(A41,Feeder!$A$2 :$C$83),"")&IF($A$1="Friday",LOOKUP(A41,Feeder!$A$ 2:$C$83),"")




  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Is it possible to shorten this LOOKUP Formula?

Why not just use

=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I have 3 groups of Drivers, all of them work a for day work week. Group 1
works Monday-Thursday, 2 works Tuesday-Friday, and 3 works Friday,
Saturday,
Sunday, Monday. Group 1 with Friday off has assignment numbers of 900-949,
2
with Monday off has 950-999, 3 does 900-949 on Friday and 950-999 on
Monday.
(The weekend numbers are totally different and not included in this
process).
On my spread sheet I use these numbers in column A to time track the
drivers
as they pass various locations. Column H is where I place the names of the
drivers. I have H set to change names for the different days of the week.
I'm wondering if I can shorten this formula, by using an abbreviation.
Weekday, Mon-Thur, something like that?


900-949 Friday's off;

=IF($A$1="Monday",LOOKUP(A3,Feeder!$A$2:$C$83),"") &IF($A$1="Tuesday",LOOKUP(A3,Feeder!$A$2:$C$83),"" )&IF($A$1="Wednesday",LOOKUP(A3,Feeder!$A$2:$C$83) ,"")&IF($A$1="Thursday",LOOKUP(A3,Feeder!$A$2:$C$8 3),"")&IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$2 2),"")


950-999 Monday's off;


=IF($A$1="Monday",LOOKUP(A41,Feeder!$H$24:$I$43)," ")&IF($A$1="Tuesday",LOOKUP(A41,Feeder!$A$2:$C$83) ,"")&IF($A$1="Wednesday",LOOKUP(A41,Feeder!$A$2:$C $83),"")&IF($A$1="Thursday",LOOKUP(A41,Feeder!$A$2 :$C$83),"")&IF($A$1="Friday",LOOKUP(A41,Feeder!$A$ 2:$C$83),"")






  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 85
Default Is it possible to shorten this LOOKUP Formula?

I had H set that way, but I when I entered Tuesday, Wednesday, or Thursday
the column would be blank.


"Bob Phillips" wrote:

Why not just use

=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I have 3 groups of Drivers, all of them work a for day work week. Group 1
works Monday-Thursday, 2 works Tuesday-Friday, and 3 works Friday,
Saturday,
Sunday, Monday. Group 1 with Friday off has assignment numbers of 900-949,
2
with Monday off has 950-999, 3 does 900-949 on Friday and 950-999 on
Monday.
(The weekend numbers are totally different and not included in this
process).
On my spread sheet I use these numbers in column A to time track the
drivers
as they pass various locations. Column H is where I place the names of the
drivers. I have H set to change names for the different days of the week.
I'm wondering if I can shorten this formula, by using an abbreviation.
Weekday, Mon-Thur, something like that?


900-949 Friday's off;

=IF($A$1="Monday",LOOKUP(A3,Feeder!$A$2:$C$83),"") &IF($A$1="Tuesday",LOOKUP(A3,Feeder!$A$2:$C$83),"" )&IF($A$1="Wednesday",LOOKUP(A3,Feeder!$A$2:$C$83) ,"")&IF($A$1="Thursday",LOOKUP(A3,Feeder!$A$2:$C$8 3),"")&IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$2 2),"")


950-999 Monday's off;


=IF($A$1="Monday",LOOKUP(A41,Feeder!$H$24:$I$43)," ")&IF($A$1="Tuesday",LOOKUP(A41,Feeder!$A$2:$C$83) ,"")&IF($A$1="Wednesday",LOOKUP(A41,Feeder!$A$2:$C $83),"")&IF($A$1="Thursday",LOOKUP(A41,Feeder!$A$2 :$C$83),"")&IF($A$1="Friday",LOOKUP(A41,Feeder!$A$ 2:$C$83),"")







  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Is it possible to shorten this LOOKUP Formula?

Does that mean it works or that it doesn't?

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I had H set that way, but I when I entered Tuesday, Wednesday, or Thursday
the column would be blank.


"Bob Phillips" wrote:

Why not just use

=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I have 3 groups of Drivers, all of them work a for day work week. Group
1
works Monday-Thursday, 2 works Tuesday-Friday, and 3 works Friday,
Saturday,
Sunday, Monday. Group 1 with Friday off has assignment numbers of
900-949,
2
with Monday off has 950-999, 3 does 900-949 on Friday and 950-999 on
Monday.
(The weekend numbers are totally different and not included in this
process).
On my spread sheet I use these numbers in column A to time track the
drivers
as they pass various locations. Column H is where I place the names of
the
drivers. I have H set to change names for the different days of the
week.
I'm wondering if I can shorten this formula, by using an abbreviation.
Weekday, Mon-Thur, something like that?


900-949 Friday's off;

=IF($A$1="Monday",LOOKUP(A3,Feeder!$A$2:$C$83),"") &IF($A$1="Tuesday",LOOKUP(A3,Feeder!$A$2:$C$83),"" )&IF($A$1="Wednesday",LOOKUP(A3,Feeder!$A$2:$C$83) ,"")&IF($A$1="Thursday",LOOKUP(A3,Feeder!$A$2:$C$8 3),"")&IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$2 2),"")


950-999 Monday's off;


=IF($A$1="Monday",LOOKUP(A41,Feeder!$H$24:$I$43)," ")&IF($A$1="Tuesday",LOOKUP(A41,Feeder!$A$2:$C$83) ,"")&IF($A$1="Wednesday",LOOKUP(A41,Feeder!$A$2:$C $83),"")&IF($A$1="Thursday",LOOKUP(A41,Feeder!$A$2 :$C$83),"")&IF($A$1="Friday",LOOKUP(A41,Feeder!$A$ 2:$C$83),"")









  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 85
Default Is it possible to shorten this LOOKUP Formula?

oops, sorry my mistake. I had,

=IF($A$1="Monday",LOOKUP(A7,Feeder!$A$2:$C$83),"") &IF($A$1="Friday",LOOKUP(A7,Feeder!$H$3:$I$22), "")
and that left the blanks, for Tuesday, Wednesday, Thursday.

Your right, Thank You. I'm glad you asked if it work.

900-936 Fridays off;
=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))
950-986 Mondays off;
=IF($A$1="Monday",LOOKUP(A3,Feeder!$H$24:$I$43),LO OKUP(A3,Feeder!$A$2:$C$83))


"Bob Phillips" wrote:

Does that mean it works or that it doesn't?

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I had H set that way, but I when I entered Tuesday, Wednesday, or Thursday
the column would be blank.


"Bob Phillips" wrote:

Why not just use

=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I have 3 groups of Drivers, all of them work a for day work week. Group
1
works Monday-Thursday, 2 works Tuesday-Friday, and 3 works Friday,
Saturday,
Sunday, Monday. Group 1 with Friday off has assignment numbers of
900-949,
2
with Monday off has 950-999, 3 does 900-949 on Friday and 950-999 on
Monday.
(The weekend numbers are totally different and not included in this
process).
On my spread sheet I use these numbers in column A to time track the
drivers
as they pass various locations. Column H is where I place the names of
the
drivers. I have H set to change names for the different days of the
week.
I'm wondering if I can shorten this formula, by using an abbreviation.
Weekday, Mon-Thur, something like that?


900-949 Friday's off;

=IF($A$1="Monday",LOOKUP(A3,Feeder!$A$2:$C$83),"") &IF($A$1="Tuesday",LOOKUP(A3,Feeder!$A$2:$C$83),"" )&IF($A$1="Wednesday",LOOKUP(A3,Feeder!$A$2:$C$83) ,"")&IF($A$1="Thursday",LOOKUP(A3,Feeder!$A$2:$C$8 3),"")&IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$2 2),"")


950-999 Monday's off;


=IF($A$1="Monday",LOOKUP(A41,Feeder!$H$24:$I$43)," ")&IF($A$1="Tuesday",LOOKUP(A41,Feeder!$A$2:$C$83) ,"")&IF($A$1="Wednesday",LOOKUP(A41,Feeder!$A$2:$C $83),"")&IF($A$1="Thursday",LOOKUP(A41,Feeder!$A$2 :$C$83),"")&IF($A$1="Friday",LOOKUP(A41,Feeder!$A$ 2:$C$83),"")












  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Is it possible to shorten this LOOKUP Formula?

Well I am no wiser as to whether it works or not. I was proposing just the
one formula for all circumstances, Mon, Tue, Wed,... off, namely

=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))


--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
oops, sorry my mistake. I had,

=IF($A$1="Monday",LOOKUP(A7,Feeder!$A$2:$C$83),"") &IF($A$1="Friday",LOOKUP(A7,Feeder!$H$3:$I$22), "")
and that left the blanks, for Tuesday, Wednesday, Thursday.

Your right, Thank You. I'm glad you asked if it work.

900-936 Friday's off;
=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))
950-986 Monday's off;
=IF($A$1="Monday",LOOKUP(A3,Feeder!$H$24:$I$43),LO OKUP(A3,Feeder!$A$2:$C$83))


"Bob Phillips" wrote:

Does that mean it works or that it doesn't?

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I had H set that way, but I when I entered Tuesday, Wednesday, or
Thursday
the column would be blank.


"Bob Phillips" wrote:

Why not just use

=IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$22),LOO KUP(A3,Feeder!$A$2:$C$83))

--
__________________________________
HTH

Bob

"Dale G" wrote in message
...
I have 3 groups of Drivers, all of them work a for day work week.
Group
1
works Monday-Thursday, 2 works Tuesday-Friday, and 3 works Friday,
Saturday,
Sunday, Monday. Group 1 with Friday off has assignment numbers of
900-949,
2
with Monday off has 950-999, 3 does 900-949 on Friday and 950-999 on
Monday.
(The weekend numbers are totally different and not included in this
process).
On my spread sheet I use these numbers in column A to time track the
drivers
as they pass various locations. Column H is where I place the names
of
the
drivers. I have H set to change names for the different days of the
week.
I'm wondering if I can shorten this formula, by using an
abbreviation.
Weekday, Mon-Thur, something like that?


900-949 Friday's off;

=IF($A$1="Monday",LOOKUP(A3,Feeder!$A$2:$C$83),"") &IF($A$1="Tuesday",LOOKUP(A3,Feeder!$A$2:$C$83),"" )&IF($A$1="Wednesday",LOOKUP(A3,Feeder!$A$2:$C$83) ,"")&IF($A$1="Thursday",LOOKUP(A3,Feeder!$A$2:$C$8 3),"")&IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$2 2),"")


950-999 Monday's off;


=IF($A$1="Monday",LOOKUP(A41,Feeder!$H$24:$I$43)," ")&IF($A$1="Tuesday",LOOKUP(A41,Feeder!$A$2:$C$83) ,"")&IF($A$1="Wednesday",LOOKUP(A41,Feeder!$A$2:$C $83),"")&IF($A$1="Thursday",LOOKUP(A41,Feeder!$A$2 :$C$83),"")&IF($A$1="Friday",LOOKUP(A41,Feeder!$A$ 2:$C$83),"")












  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,124
Default Is it possible to shorten this LOOKUP Formula?

Modify this idea to suit
=VLOOKUP("apple",IF(K2="f",A1:B4,A2:B4),2,0)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dale G" wrote in message
...
I have 3 groups of Drivers, all of them work a for day work week. Group 1
works Monday-Thursday, 2 works Tuesday-Friday, and 3 works Friday,
Saturday,
Sunday, Monday. Group 1 with Friday off has assignment numbers of 900-949,
2
with Monday off has 950-999, 3 does 900-949 on Friday and 950-999 on
Monday.
(The weekend numbers are totally different and not included in this
process).
On my spread sheet I use these numbers in column A to time track the
drivers
as they pass various locations. Column H is where I place the names of the
drivers. I have H set to change names for the different days of the week.
I'm wondering if I can shorten this formula, by using an abbreviation.
Weekday, Mon-Thur, something like that?


900-949 Fridays off;

=IF($A$1="Monday",LOOKUP(A3,Feeder!$A$2:$C$83),"") &IF($A$1="Tuesday",LOOKUP(A3,Feeder!$A$2:$C$83),"" )&IF($A$1="Wednesday",LOOKUP(A3,Feeder!$A$2:$C$83) ,"")&IF($A$1="Thursday",LOOKUP(A3,Feeder!$A$2:$C$8 3),"")&IF($A$1="Friday",LOOKUP(A3,Feeder!$H$3:$I$2 2),"")


950-999 Mondays off;


=IF($A$1="Monday",LOOKUP(A41,Feeder!$H$24:$I$43)," ")&IF($A$1="Tuesday",LOOKUP(A41,Feeder!$A$2:$C$83) ,"")&IF($A$1="Wednesday",LOOKUP(A41,Feeder!$A$2:$C $83),"")&IF($A$1="Thursday",LOOKUP(A41,Feeder!$A$2 :$C$83),"")&IF($A$1="Friday",LOOKUP(A41,Feeder!$A$ 2:$C$83),"")





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
Shorten a formula Jeze77 Excel Discussion (Misc queries) 0 August 30th 07 07:46 PM
Shorten a formula Jeze77 Excel Discussion (Misc queries) 6 August 30th 07 06:34 PM
Shorten Formula Lemmesee Excel Worksheet Functions 3 January 7th 07 10:30 PM
Shorten an IF formula Joker Excel Discussion (Misc queries) 4 December 10th 05 12:30 PM
shorten formula PACable Excel Worksheet Functions 8 October 27th 05 12:39 AM


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