Solved

# Index / Match Function

Posted on 2011-02-11
221 Views
Hi,

if you look at Column J of the attached file you can see it is picking up tax Credit from Column A (13.88 ETC)

I need this formula to be changed to pick up gross (one row up in ColA)

In K you can see it is picking up the holdings from ColA.

The ones i have highlighted re are incorrect because they dont pick up enough characters, so the formula needs to be adjusted to pick up numbers that would be a over 8 figures

If anyone can adjust for these two that would be great!

Thanks
Seamus
CP-Rep1-1-.zip
0
Question by:Seamus2626
• 4
• 2

LVL 6

Expert Comment

ID: 34869952
Dear

=TRIM(MID(INDEX(\$A:\$A;\$B7+9);36;9)) in the first J cell

Kr

Eric
0

LVL 6

Expert Comment

ID: 34869963
for columns K to adjust the amount of numbers to be picked up you have to change

=TRIM(MID(INDEX(\$A:\$A;\$B9+20);36;10)) the last number in this formula The 10 indicates you want to copy 10 characters( numbers)

If you want more change into 11, 15 or 20...

KR

Eric
0

LVL 6

Accepted Solution

Eric Zwiekhorst earned 500 total points
ID: 34869970
Dear seamus,

I adjusted all cell in columns J and K

Kr

Eric
CP-Rep1-1-.xls
0

Author Closing Comment

ID: 34870007
Hi Zwiekhorst,

Thank you for that.

I get how it works now!
0

LVL 50

Expert Comment

ID: 34870017
But that still doesn't pick up the full figure, e.g. K9 should be 1,695,279, I believe. Each of the relevant cells appears to have a colon at position 22 then the rest of the data is spaces and the figure so to get the full figure you might as well take everything after character 22 and trim it, e.g. in K7 copied down

=TRIM(MID(INDEX(\$A:\$A,\$B7+20),23,100))

If you want to convert that to a number (it's currently text) then add +0 to the end of the formula

regards, barry
0

LVL 6

Expert Comment

ID: 34870043
Hi Seamus,

Thanks for the points and the grade

kr

Eric
0

Author Comment

ID: 34870077
hey Barry, your right, but i worked it out from the Col J adjustment so all good, thanks for the update though!

Cheers,
Seamus
0

## Featured Post

### Suggested Solutions

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.