Complicated formula using Indirect, Index and Match, HELP!!!

thesproing

Board Regular
Ok,

Just recieved some great help for some peeps out there for helping me craft this formuale;

=INDIRECT("'"&\$B\$2-1&"-"&\$B\$2&"'!O"&ROW())

This helped me fill an array with data contained on another sheet depending on the value of a particular cell in the original....

This is the sheet using the formulae;

http://s188.photobucket.com/albums/z303/thesproing/?action=view&current=display.jpg

However, now what i need to do the same for the colum named "hours lost to sickness" which is calculated on another sheet. show below;

http://s188.photobucket.com/albums/z303/thesproing/?action=view&current=employeerecords.jpg

If we go back to the first table, this is the formula i am currently using to caluclate the value of the cells in colum N;

I knopw its a big ask, but is there any way of using a combination of IF, VLOOKUP and MATCH to simplify it all?

Something like....IF(B2=x,INDEX('Emplyee Records"!C5:Z34,MATCH("Employee Records""B2-1&"-"&B2",ROW())) ???

or maybe INDIRECT(INDEX('Emplyee Records"!C5:Z34,MATCH("Employee Records""B2-1&"-"&B2",ROW()))

I know im on the right track, i just dont have the experiance to get it right!!!

Any help, whatsoever would be amazing!!!!!!!

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

thesproing

Board Regular
oops, forgot the long winded formula for colum N;

=IF(\$B\$2=\$A\$37,'Employee Records'!H7,IF(\$B\$2=\$A\$38,'Employee Records'!I7,IF(\$B\$2=Sickness!\$A\$39,'Employee Records'!J7,IF(Sickness!\$B\$2=Sickness!\$A\$40,'Employee Records'!K7,IF(\$B\$2=\$A\$41,'Employee Records'!L7,0)))))

ridiculous i know, but the alternaitve seems too complex!!!!

Replies
0
Views
342
Replies
8
Views
1K
Replies
6
Views
360
Replies
6
Views
474
Replies
1
Views
497

Threads
1,186,826
Messages
5,960,024
Members
438,458
Latest member
manojkumarat1999

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

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