Need Formula Help

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
Need a formula for columns F:H using the values in columns C:E, that will return the number of rows that have occured since each value appeared.

example for 7 1 1
7 appears 2 rows down; the first 1 appears 3 rows down; the second 1 appears 4 rows down.

4 9 9
4 appears 2 rows down; the first 9 appears 1 row down; second 9 appears 3 rows down.
Excel Workbook
BCDEFGH
103/02/11711234
203/01/11499213
302/28/11970
402/27/11314
502/26/11951
602/25/11542
702/24/11681
Sheet1
Excel 2007
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Maybe:

Code:
=IFERROR(SMALL(IF($C2:$E$7=C1,ROW(C2:C$7)-ROW(C2)+1),COUNTIF($C1:C1,C1)),0)
In F2, committed with CTRL+SHIFT+ENTER and copied down and across.

Matty
 
Upvote 0
Having a conflict between the formulas in F:H and K:M. The formula in F return a T, if the value in K is one of the last 5 unique values. Tried multiplying the values in K:m by 1, still get wrong result. The result in F should be a T. The last 5 unique values are 1,3,4,5,12.
Excel Workbook
BCDEFGHIJKLM
10597597FFFFFF1522
11643643FFFFFF1512
12497497FFFFFF11221
13237237FFFFFF1118
14293293FFFFFF1131
15325325FFFFFF6334
16668668FFFFTF2374
17199199FFFFFT6312
18932932FFFFTF1142
19569569FFFFTF5445
SKIPSUMS
Excel 2007
Cell Formulas
RangeFormula
E10=B10&C10&D10
E11=B11&C11&D11
E12=B12&C12&D12
E13=B13&C13&D13
E14=B14&C14&D14
E15=B15&C15&D15
E16=B16&C16&D16
E17=B17&C17&D17
E18=B18&C18&D18
E19=B19&C19&D19
I10=F10&G10&H10
I11=F11&G11&H11
I12=F12&G12&H12
I13=F13&G13&H13
I14=F14&G14&H14
I15=F15&G15&H15
I16=F16&G16&H16
I17=F17&G17&H17
I18=F18&G18&H18
I19=F19&G19&H19
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Hi,

Could you elaborate more as to what you're trying to do?

It's not very clear from your most recent post.

Matty
 
Upvote 0
Trying to use the formula in column F, using the values in column K to return a T, if the value in K10 is one of the last 5 unique digits in column K. The last 5 unique digits in column K are 1,3,4,5,12. Don't know if the formula in column F can be used with a 2-digit value.
 
Last edited:
Upvote 0
Trying to use the formula in column F, using the values in column K to return a T, if the value in K10 is one of the last 5 unique digits in column K. The last 5 unique digits in column K are 1,3,4,5,12. Don't know if the formula in column F can be used with a 2-digit value.

Have no idea what I was doing wrong, but it works now, thanks for replying.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top