Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Real "IF"y Question

Below I have a group of Cells in Columns A & B. They represent backup tape
numbers and a description. I need to build some kind of a statement that
will tell me the last tape numbe in each set. A set consists of tapes 1 thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have 1,2,3 of 4.
In the first 4 records the last tape in that sequence would be 200507

The formula would go in Col. C and I showed what the results should be
(manually entered)

I have tried using vlookup and building an IF statement but I hit the max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Real "IF"y Question

What data is in what column?

Col. A Col. B Col. C
200504 Feb 2004 Onsite Tape 1 of 4 200507


Col A = 200504
Col B = Feb 2004 Onsite Tape 1 of 4
Col C = obvious

It looks like all you need to do is find the max for the month year.

Try this entered as an array using the key combination of CTRL,SHIFT,ENTER
(not just ENTER):

=MAX((LEFT(B$2:B$10,8)=LEFT(B2,8))*A$2:A$10)

Copy down as needed. This assumes the "date" format is always mmm yyyy.

Biff

"El Bee" wrote in message
...
Below I have a group of Cells in Columns A & B. They represent backup
tape
numbers and a description. I need to build some kind of a statement that
will tell me the last tape numbe in each set. A set consists of tapes 1
thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have 1,2,3 of
4.
In the first 4 records the last tape in that sequence would be 200507

The formula would go in Col. C and I showed what the results should be
(manually entered)

I have tried using vlookup and building an IF statement but I hit the max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Real "IF"y Question

I need to clarify. I failed to include another column, column "D" which
contains the date each tape was written to.
There are approx. 800 records that have bee sorted by Col. D then Col. B and
the formula would go in Col. C

So it should look like this:


Col. A Col. B Col. C
Col. D
tape # Description Master
Date Written to
200504 Feb 2004 Onsite Tape 1 of 4 200507 02/05/04
200505 Feb 2004 Onsite Tape 2 of 4 200507 02/05/04
200506 Feb 2004 Onsite Tape 3 of 4 200507 02/05/04
200507 Feb 2004 Onsite Tape 4 of 4 200507 02/05/04
200584 Feb 2005 Offsite Tape 1 of 2 200586 02/10/05
200586 Feb 2005 Offsite Tape 2 of 2 200586 02/10/05
200775 Feb 2006 Offstie Tape 1 of 3 200777 02/19/06
200776 Feb 2006 Offstie Tape 2 of 3 200777 02/19/06
200777 Feb 2006 Offstie Tape 3 of 3 200777 02/19/06


"T. Valko" wrote:

What data is in what column?

Col. A Col. B Col. C
200504 Feb 2004 Onsite Tape 1 of 4 200507


Col A = 200504
Col B = Feb 2004 Onsite Tape 1 of 4
Col C = obvious

It looks like all you need to do is find the max for the month year.

Try this entered as an array using the key combination of CTRL,SHIFT,ENTER
(not just ENTER):

=MAX((LEFT(B$2:B$10,8)=LEFT(B2,8))*A$2:A$10)

Copy down as needed. This assumes the "date" format is always mmm yyyy.

Biff

"El Bee" wrote in message
...
Below I have a group of Cells in Columns A & B. They represent backup
tape
numbers and a description. I need to build some kind of a statement that
will tell me the last tape numbe in each set. A set consists of tapes 1
thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have 1,2,3 of
4.
In the first 4 records the last tape in that sequence would be 200507

The formula would go in Col. C and I showed what the results should be
(manually entered)

I have tried using vlookup and building an IF statement but I hit the max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Real "IF"y Question

The formula will still work as is but this one may be slightly more
efficient:

Still, array entered (CSE):

=MAX((D$2:D$10=D2)*A$2:A$10)

Biff

"El Bee" wrote in message
...
I need to clarify. I failed to include another column, column "D" which
contains the date each tape was written to.
There are approx. 800 records that have bee sorted by Col. D then Col. B
and
the formula would go in Col. C

So it should look like this:


Col. A Col. B Col. C
Col. D
tape # Description Master
Date Written to
200504 Feb 2004 Onsite Tape 1 of 4 200507 02/05/04
200505 Feb 2004 Onsite Tape 2 of 4 200507 02/05/04
200506 Feb 2004 Onsite Tape 3 of 4 200507 02/05/04
200507 Feb 2004 Onsite Tape 4 of 4 200507 02/05/04
200584 Feb 2005 Offsite Tape 1 of 2 200586 02/10/05
200586 Feb 2005 Offsite Tape 2 of 2 200586 02/10/05
200775 Feb 2006 Offstie Tape 1 of 3 200777 02/19/06
200776 Feb 2006 Offstie Tape 2 of 3 200777 02/19/06
200777 Feb 2006 Offstie Tape 3 of 3 200777 02/19/06


"T. Valko" wrote:

What data is in what column?

Col. A Col. B Col. C
200504 Feb 2004 Onsite Tape 1 of 4 200507


Col A = 200504
Col B = Feb 2004 Onsite Tape 1 of 4
Col C = obvious

It looks like all you need to do is find the max for the month year.

Try this entered as an array using the key combination of
CTRL,SHIFT,ENTER
(not just ENTER):

=MAX((LEFT(B$2:B$10,8)=LEFT(B2,8))*A$2:A$10)

Copy down as needed. This assumes the "date" format is always mmm yyyy.

Biff

"El Bee" wrote in message
...
Below I have a group of Cells in Columns A & B. They represent backup
tape
numbers and a description. I need to build some kind of a statement
that
will tell me the last tape numbe in each set. A set consists of tapes
1
thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have 1,2,3
of
4.
In the first 4 records the last tape in that sequence would be 200507

The formula would go in Col. C and I showed what the results should be
(manually entered)

I have tried using vlookup and building an IF statement but I hit the
max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Real "IF"y Question

Yes it does; thanks for the help!!!! :)

"T. Valko" wrote:

The formula will still work as is but this one may be slightly more
efficient:

Still, array entered (CSE):

=MAX((D$2:D$10=D2)*A$2:A$10)

Biff

"El Bee" wrote in message
...
I need to clarify. I failed to include another column, column "D" which
contains the date each tape was written to.
There are approx. 800 records that have bee sorted by Col. D then Col. B
and
the formula would go in Col. C

So it should look like this:


Col. A Col. B Col. C
Col. D
tape # Description Master
Date Written to
200504 Feb 2004 Onsite Tape 1 of 4 200507 02/05/04
200505 Feb 2004 Onsite Tape 2 of 4 200507 02/05/04
200506 Feb 2004 Onsite Tape 3 of 4 200507 02/05/04
200507 Feb 2004 Onsite Tape 4 of 4 200507 02/05/04
200584 Feb 2005 Offsite Tape 1 of 2 200586 02/10/05
200586 Feb 2005 Offsite Tape 2 of 2 200586 02/10/05
200775 Feb 2006 Offstie Tape 1 of 3 200777 02/19/06
200776 Feb 2006 Offstie Tape 2 of 3 200777 02/19/06
200777 Feb 2006 Offstie Tape 3 of 3 200777 02/19/06


"T. Valko" wrote:

What data is in what column?

Col. A Col. B Col. C
200504 Feb 2004 Onsite Tape 1 of 4 200507

Col A = 200504
Col B = Feb 2004 Onsite Tape 1 of 4
Col C = obvious

It looks like all you need to do is find the max for the month year.

Try this entered as an array using the key combination of
CTRL,SHIFT,ENTER
(not just ENTER):

=MAX((LEFT(B$2:B$10,8)=LEFT(B2,8))*A$2:A$10)

Copy down as needed. This assumes the "date" format is always mmm yyyy.

Biff

"El Bee" wrote in message
...
Below I have a group of Cells in Columns A & B. They represent backup
tape
numbers and a description. I need to build some kind of a statement
that
will tell me the last tape numbe in each set. A set consists of tapes
1
thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have 1,2,3
of
4.
In the first 4 records the last tape in that sequence would be 200507

The formula would go in Col. C and I showed what the results should be
(manually entered)

I have tried using vlookup and building an IF statement but I hit the
max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Real "IF"y Question

You're welcome!

Biff

"El Bee" wrote in message
...
Yes it does; thanks for the help!!!! :)

"T. Valko" wrote:

The formula will still work as is but this one may be slightly more
efficient:

Still, array entered (CSE):

=MAX((D$2:D$10=D2)*A$2:A$10)

Biff

"El Bee" wrote in message
...
I need to clarify. I failed to include another column, column "D" which
contains the date each tape was written to.
There are approx. 800 records that have bee sorted by Col. D then Col.
B
and
the formula would go in Col. C

So it should look like this:


Col. A Col. B Col. C
Col. D
tape # Description Master
Date Written to
200504 Feb 2004 Onsite Tape 1 of 4 200507 02/05/04
200505 Feb 2004 Onsite Tape 2 of 4 200507 02/05/04
200506 Feb 2004 Onsite Tape 3 of 4 200507 02/05/04
200507 Feb 2004 Onsite Tape 4 of 4 200507 02/05/04
200584 Feb 2005 Offsite Tape 1 of 2 200586 02/10/05
200586 Feb 2005 Offsite Tape 2 of 2 200586 02/10/05
200775 Feb 2006 Offstie Tape 1 of 3 200777 02/19/06
200776 Feb 2006 Offstie Tape 2 of 3 200777 02/19/06
200777 Feb 2006 Offstie Tape 3 of 3 200777 02/19/06


"T. Valko" wrote:

What data is in what column?

Col. A Col. B Col. C
200504 Feb 2004 Onsite Tape 1 of 4 200507

Col A = 200504
Col B = Feb 2004 Onsite Tape 1 of 4
Col C = obvious

It looks like all you need to do is find the max for the month year.

Try this entered as an array using the key combination of
CTRL,SHIFT,ENTER
(not just ENTER):

=MAX((LEFT(B$2:B$10,8)=LEFT(B2,8))*A$2:A$10)

Copy down as needed. This assumes the "date" format is always mmm
yyyy.

Biff

"El Bee" wrote in message
...
Below I have a group of Cells in Columns A & B. They represent
backup
tape
numbers and a description. I need to build some kind of a statement
that
will tell me the last tape numbe in each set. A set consists of
tapes
1
thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have
1,2,3
of
4.
In the first 4 records the last tape in that sequence would be
200507

The formula would go in Col. C and I showed what the results should
be
(manually entered)

I have tried using vlookup and building an IF statement but I hit
the
max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777









  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Real "IF"y Question

El Bee,
I am assuming that the month/year is the deciding element, hence we can
rely on the first 8 characters to identify groups). I am also assuming
that the code is a number. Thus, in C2:

=MAX(IF(LEFT($B$2:$B$100,8)=LEFT(B2,8),$A$2:$A$100 ))

This is an array formula, thus you need to use Ctrl+Shift+Enter when
entering it.

HTH
Kostis Vezerides


El Bee wrote:
Below I have a group of Cells in Columns A & B. They represent backup tape
numbers and a description. I need to build some kind of a statement that
will tell me the last tape numbe in each set. A set consists of tapes 1 thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have 1,2,3 of 4.
In the first 4 records the last tape in that sequence would be 200507

The formula would go in Col. C and I showed what the results should be
(manually entered)

I have tried using vlookup and building an IF statement but I hit the max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Real "IF"y Question

I need to clarify. I failed to include another column, column "D" which
contains the date each tape was written to.
There are approx. 800 records that have bee sorted by Col. D then Col. B and
the formula would go in Col. C

So it should look like this:


Col. A Col. B Col. C
Col. D
tape # Description Master
Date Written to
200504 Feb 2004 Onsite Tape 1 of 4 200507 02/05/04
200505 Feb 2004 Onsite Tape 2 of 4 200507 02/05/04
200506 Feb 2004 Onsite Tape 3 of 4 200507 02/05/04
200507 Feb 2004 Onsite Tape 4 of 4 200507 02/05/04
200584 Feb 2005 Offsite Tape 1 of 2 200586 02/10/05
200586 Feb 2005 Offsite Tape 2 of 2 200586 02/10/05
200775 Feb 2006 Offstie Tape 1 of 3 200777 02/19/06
200776 Feb 2006 Offstie Tape 2 of 3 200777 02/19/06
200777 Feb 2006 Offstie Tape 3 of 3 200777 02/19/06



"El Bee" wrote:

Below I have a group of Cells in Columns A & B. They represent backup tape
numbers and a description. I need to build some kind of a statement that
will tell me the last tape numbe in each set. A set consists of tapes 1 thru
# where # could be 1,2,3 or 4. Some sets have 1 of 2 others have 1,2,3 of 4.
In the first 4 records the last tape in that sequence would be 200507

The formula would go in Col. C and I showed what the results should be
(manually entered)

I have tried using vlookup and building an IF statement but I hit the max
of the If's.
Any ideas would be appreciatied.

here's the data:

Col. A Col. B Col. C
tape # Description Master
200504 Feb 2004 Onsite Tape 1 of 4 200507
200505 Feb 2004 Onsite Tape 2 of 4 200507
200506 Feb 2004 Onsite Tape 3 of 4 200507
200507 Feb 2004 Onsite Tape 4 of 4 200507
200584 Feb 2005 Offsite Tape 1 of 2 200586
200586 Feb 2005 Offsite Tape 2 of 2 200586
200775 Feb 2006 Offstie Tape 1 of 3 200777
200776 Feb 2006 Offstie Tape 2 of 3 200777
200777 Feb 2006 Offstie Tape 3 of 3 200777

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
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Newbie With A Question Michael Excel Worksheet Functions 0 July 28th 05 11:50 PM
Anybody Help with previous question Anthony Excel Discussion (Misc queries) 1 July 26th 05 01:26 PM
Question about combining data from multiple workbooks into one rep BookOpenandUpright Excel Discussion (Misc queries) 2 February 19th 05 12:37 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM


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