Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jambruins
 
Posts: n/a
Default Need some help with a formula...thanks in advance

I have a tab called Record. Here are the cells it contains:
A1: 0-.4
A2: .5-.9
A3: 1.0-1.4
A4: +1.5
A5: PL

This repeats in cells A6-A10,A11-A15,etc.

In another tab called Graph I have the following in cell B2 (cell B1: 0-.4)
=VLOOKUP(B1,Record!A:D,4,0)

The above formula works fine as it finds the first 0-.4 and gives me the
number in cell D. I would like a formula for cell B3 to find the next
occurance of 0-.4 and give me the number in the corresponding cell D.

Anyone know how to do it?

I belive it is something like this (this is another formula in my
spreadhsheet but I can't follow it). I believe I could use the same formula
but just need to reference the Record tab instead of the Scores tab, B1
instead of Capitals, and the Q and S references change to something.

=IF(ISTEXT(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco res!$Q$1:$Q$50000="CAPITALS",ROW(INDIRECT("1:50000 "))),ROW()-1))),(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Scores!$ Q$1:$Q$50000="CAPITALS",ROW(INDIRECT("1:50000"))), ROW()-1))),"")

  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=INDEX(Record!D1:D100,SMALL(IF(Record!A1:A100=B1,R OW(Record!A1:A100)-ROW(
Record!A1)+1),2))

....confirmed with CONTROL+SHIFT+ENTER. Adjust the range accordingly.

Hope this helps!

In article ,
Jambruins wrote:

I have a tab called Record. Here are the cells it contains:
A1: 0-.4
A2: .5-.9
A3: 1.0-1.4
A4: +1.5
A5: PL

This repeats in cells A6-A10,A11-A15,etc.

In another tab called Graph I have the following in cell B2 (cell B1: 0-.4)
=VLOOKUP(B1,Record!A:D,4,0)

The above formula works fine as it finds the first 0-.4 and gives me the
number in cell D. I would like a formula for cell B3 to find the next
occurance of 0-.4 and give me the number in the corresponding cell D.

Anyone know how to do it?

I belive it is something like this (this is another formula in my
spreadhsheet but I can't follow it). I believe I could use the same formula
but just need to reference the Record tab instead of the Scores tab, B1
instead of Capitals, and the Q and S references change to something.

=IF(ISTEXT(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco res!$Q$1:$Q$50000="CAPITALS"
,ROW(INDIRECT("1:50000"))),ROW()-1))),(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco
res!$Q$1:$Q$50000="CAPITALS",ROW(INDIRECT("1:50000 "))),ROW()-1))),"")

  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

Use this formula in Graph B2:

=IF(COUNTIF(record!A:A,B$1)=ROWS($1:1),VLOOKUP(B$ 1,OFFSET(record!A$1,(ROW(1:1)-1)*5,,5,4),4,0),"")

Copy down as needed.

Biff

"Jambruins" wrote in message
...
I have a tab called Record. Here are the cells it contains:
A1: 0-.4
A2: .5-.9
A3: 1.0-1.4
A4: +1.5
A5: PL

This repeats in cells A6-A10,A11-A15,etc.

In another tab called Graph I have the following in cell B2 (cell B1:
0-.4)
=VLOOKUP(B1,Record!A:D,4,0)

The above formula works fine as it finds the first 0-.4 and gives me the
number in cell D. I would like a formula for cell B3 to find the next
occurance of 0-.4 and give me the number in the corresponding cell D.

Anyone know how to do it?

I belive it is something like this (this is another formula in my
spreadhsheet but I can't follow it). I believe I could use the same
formula
but just need to reference the Record tab instead of the Scores tab, B1
instead of Capitals, and the Q and S references change to something.

=IF(ISTEXT(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco res!$Q$1:$Q$50000="CAPITALS",ROW(INDIRECT("1:50000 "))),ROW()-1))),(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Scores!$ Q$1:$Q$50000="CAPITALS",ROW(INDIRECT("1:50000"))), ROW()-1))),"")



  #4   Report Post  
Jambruins
 
Posts: n/a
Default Need some help with a formula...thanks in advance

thanks Domenic, it works perfect.

"Domenic" wrote:

Try...

=INDEX(Record!D1:D100,SMALL(IF(Record!A1:A100=B1,R OW(Record!A1:A100)-ROW(
Record!A1)+1),2))

....confirmed with CONTROL+SHIFT+ENTER. Adjust the range accordingly.

Hope this helps!

In article ,
Jambruins wrote:

I have a tab called Record. Here are the cells it contains:
A1: 0-.4
A2: .5-.9
A3: 1.0-1.4
A4: +1.5
A5: PL

This repeats in cells A6-A10,A11-A15,etc.

In another tab called Graph I have the following in cell B2 (cell B1: 0-.4)
=VLOOKUP(B1,Record!A:D,4,0)

The above formula works fine as it finds the first 0-.4 and gives me the
number in cell D. I would like a formula for cell B3 to find the next
occurance of 0-.4 and give me the number in the corresponding cell D.

Anyone know how to do it?

I belive it is something like this (this is another formula in my
spreadhsheet but I can't follow it). I believe I could use the same formula
but just need to reference the Record tab instead of the Scores tab, B1
instead of Capitals, and the Q and S references change to something.

=IF(ISTEXT(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco res!$Q$1:$Q$50000="CAPITALS"
,ROW(INDIRECT("1:50000"))),ROW()-1))),(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco
res!$Q$1:$Q$50000="CAPITALS",ROW(INDIRECT("1:50000 "))),ROW()-1))),"")


  #5   Report Post  
Jambruins
 
Posts: n/a
Default Need some help with a formula...thanks in advance

Domenic,
Acutally there is still a problem. If I put the formula you gave me into
cell B3 it does find the next occurance of 0-.4. However, I copied the
formula down but cell B4 gives me the same answer as cell B3. Should I be
using $ before and after the A and D in the formula? Should the +1, 2 change
when I copy it down? Thanks

"Domenic" wrote:

Try...

=INDEX(Record!D1:D100,SMALL(IF(Record!A1:A100=B1,R OW(Record!A1:A100)-ROW(
Record!A1)+1),2))

....confirmed with CONTROL+SHIFT+ENTER. Adjust the range accordingly.

Hope this helps!

In article ,
Jambruins wrote:

I have a tab called Record. Here are the cells it contains:
A1: 0-.4
A2: .5-.9
A3: 1.0-1.4
A4: +1.5
A5: PL

This repeats in cells A6-A10,A11-A15,etc.

In another tab called Graph I have the following in cell B2 (cell B1: 0-.4)
=VLOOKUP(B1,Record!A:D,4,0)

The above formula works fine as it finds the first 0-.4 and gives me the
number in cell D. I would like a formula for cell B3 to find the next
occurance of 0-.4 and give me the number in the corresponding cell D.

Anyone know how to do it?

I belive it is something like this (this is another formula in my
spreadhsheet but I can't follow it). I believe I could use the same formula
but just need to reference the Record tab instead of the Scores tab, B1
instead of Capitals, and the Q and S references change to something.

=IF(ISTEXT(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco res!$Q$1:$Q$50000="CAPITALS"
,ROW(INDIRECT("1:50000"))),ROW()-1))),(INDEX(Scores!$S$1:$S$50000,SMALL(IF(Sco
res!$Q$1:$Q$50000="CAPITALS",ROW(INDIRECT("1:50000 "))),ROW()-1))),"")




  #6   Report Post  
Domenic
 
Posts: n/a
Default Need some help with a formula...thanks in advance

Try...

B3, copied down:

=INDEX(Record!D$1:D$100,SMALL(IF(Record!$A$1:$A$10 0=$B$1,ROW(Record!$A$1:
$A$100)-ROW(Record!$A$1)+1),ROWS(B$3:B3)+1))

....confirmed with CONTROL+SHIFT+ENTER. This will return the second
occurrence to B3, the third occurrence to B4, and so on.

Hope this helps!

In article ,
Jambruins wrote:

Domenic,
Acutally there is still a problem. If I put the formula you gave me into
cell B3 it does find the next occurance of 0-.4. However, I copied the
formula down but cell B4 gives me the same answer as cell B3. Should I be
using $ before and after the A and D in the formula? Should the +1, 2 change
when I copy it down? Thanks

  #7   Report Post  
Jambruins
 
Posts: n/a
Default Need some help with a formula...thanks in advance

thanks Dom, perfect

"Domenic" wrote:

Try...

B3, copied down:

=INDEX(Record!D$1:D$100,SMALL(IF(Record!$A$1:$A$10 0=$B$1,ROW(Record!$A$1:
$A$100)-ROW(Record!$A$1)+1),ROWS(B$3:B3)+1))

....confirmed with CONTROL+SHIFT+ENTER. This will return the second
occurrence to B3, the third occurrence to B4, and so on.

Hope this helps!

In article ,
Jambruins wrote:

Domenic,
Acutally there is still a problem. If I put the formula you gave me into
cell B3 it does find the next occurance of 0-.4. However, I copied the
formula down but cell B4 gives me the same answer as cell B3. Should I be
using $ before and after the A and D in the formula? Should the +1, 2 change
when I copy it down? Thanks


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
dragging a formula P Bates Excel Discussion (Misc queries) 3 August 7th 05 09:37 PM
Formula in VBasic SB Excel Discussion (Misc queries) 3 July 27th 05 09:46 AM
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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