# Complex formula..

#### VBABEGINER

##### Well-known Member
Hi Team,
I need one formula..Condition are like below..

In Col A,

like this..
Against this I have in Col B,
B2 11.2
B3 10.12
B4 5.32
B5 45.21
B6 19.10
.
.
.
and like this..

I want output like this..
11.2
5.32
45.21

10.12
19.10

Can any one please guide me...this is something complex level formula..

#### alansidman

##### Well-known Member
On a second sheet, Copy each of your project names and paste them in Row 1 across, so that they represent headers for each column.
Filter on each project and copy the results of column B and paste special into the appropriate column in the second sheet.

The Filter is on the Data Tab on the Ribbon. If you truly require this as a Macro, then use the macro recorder and then post your result to this forum and ask to have it converted to a loop or an array.

Last edited:

#### AhoyNC

##### Well-known Member
If you need a formula then try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed.
Excel Workbook
ABCD
1
 Sheet

Excellent..

#### AhoyNC

##### Well-known Member
You're welcome. If you have Excel 2016 you could also use the AGGREGATE function that doesn't require CTRL-SHIFT-ENTER. Just ENTER.
Excel Workbook
ABCD
1
 Sheet

#### AlKey

##### Active Member
Try this regular formula
Enter in D3 and copy down
Code:
``[B]=IFERROR(1/(1/INDEX(B:B,SMALL(INDEX((\$A\$2:\$A\$11<>D\$2)*10^10+ROW(\$B\$2:\$B\$11),0),ROWS(D\$2:\$D2)))),"")[/B]``

1,081,574
Messages
5,359,704
Members
400,545
Latest member
Damntheman30

### This Week's Hot Topics

• VBA (Userform)
Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
• List box that changes fill color
Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
• Remove duplicates and retain one. Cross-linked cases
Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
• VBA Copy and Paste With Duplicates
Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
• Macro
is it possible for a macro to run if the active cell value is different to the value above it
• IF DATE and TIME
I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...