formula problems (now with graphics!!)

salopian

New Member
Joined
Dec 23, 2013
Messages
18
I have 2 worksheets and I need some help, please!

COL ACOL BCOL ECOL FCOL GCOL HCOL ICOL J COL L
ROW 1
ROW 2TASKUNITFREQDIFFPCRISK 1RISK 2RISK
ROW 3
ROW 4
ROW 51AAA111111
ROW 62BBB122111
ROW 73CCC133111

<TBODY>
</TBODY>


In Worksheet 1 (above) I require a number added to Column L that is calculated from the data in Columns G and J against the data in the second Worksheet entitled TNPA.

In the example above L5 should read 1; L6 should read 2 and L7 should read 4.

I applied the formula =IFERROR(INDEX(TNPA!$C$2:$G$6,MATCH(G5,TNPA!$B$2:$B$6,0),MATCH(J5,TNPA!$C$7:$G$7,0)),"")

but it returns nothing!

</SPAN></SPAN>
COL ACOL BCOL CCOL DCOL ECOL FCOL G
ROW 1
ROW 2PC5910111213
ROW 3PC46781012
ROW 4PC3457811
ROW 5PC2235710
ROW 6PC112469
ROW 712345+
ROW 8RISKRISKRISKRISKRISK

<TBODY>
</TBODY>
TNPA Worksheet

Any help or ideas greatly appreciated!
Many thanks
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
you are finding the 1 in columnB and then the 1 in c6:g6 but what data are you trying to return ?
 
Upvote 0
you are finding the 1 in columnB and then the 1 in c6:g6 but what data are you trying to return ?

In worksheet 1 row 5 column G (PC) = 1 and column J (RISK) = 1. <o:p></o:p>
The data i'm trying to return comes from worksheet 2. In this instance PC = 1 and Risk = 1 so the data is from Row 6, Column C (the red data) = 1 <o:p></o:p>
 
Upvote 0
your formula appears to be working just fine the way you have it.

You might want to check the lookup range and lookup values and make sure they are all the same data type

Excel 2012
ABCDEFGHIJK
2TASKUNITFREQDIFFPCRISK 1RISK 2RISK
3
4
51AAA1111111
62BBB1221112
73CCC1331114

<tbody>
</tbody>
Sheet6

Worksheet Formulas
CellFormula
K5=INDEX(TNPA!$C$2:$G$6,MATCH(G5,TNPA!$B$2:$B$6,0),MATCH(J5,TNPA!$C$7:$G$7,0))

<tbody>
</tbody>

<tbody>
</tbody>


Excel 2012
ABCDEFG
2PC5910111213
3PC46781012
4PC3457811
5PC2235710
6PC112469
712345
8RISKRISKRISKRISKRISK

<tbody>
</tbody>
TNPA
 
Upvote 0
the data in worksheet 1 columns G & J is generated from furmalae using other coumns, could this impact my formula for colunmn L ?
 
Upvote 0
more then likely. If the values are being returned as text and the values column B and row 7 are numbers or vice versa then that could be your issue.

you could check the values with isnumber to verify how excel is seeing them then modify the 2 matches to be in the same format.

in the tables I posted I converted everything to numbers and it worked fine.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,175
Members
448,870
Latest member
max_pedreira

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