Fill up a column based on some difficult criterias

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,217
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
My data is like:


LHLILJLKLLLMLNLOLPLQ
50Table 1Table2 Table 3B
53281.60284.75285.00290.75ABCD200284.75
54307.30311.35312.00312.90ABCD100
55307.30311.35312.00312.90ADCB200312.90
56156.30158.35158.80163.20ABCD100
570.000.000.000.00100
580.000.000.000.00100
59295.65301.55303.35312.50BACD200295.65
60166.20169.00169.30176.35ABCD100
61201.20205.60206.00214.60DBAC100
62579.60579.60581.90587.55CADB200587.55

<tbody>
</tbody>

Requirement: Table 3 LP53:LP62 needs to be filled with values of Table 1
Criteria:
(1) MATCH LQ50 with Table 2 & pull corresponding cell position from Table 1
(2) IF Corresponding cell address of LP53:LP62 contains 200 then LQ53:LQ62=Table 1

Example:
LQ50=B
Table 2: B is in LM53 which is 2nd column of Table 2. So get 2nd column from Table 1 i.e. LI53 (284.85)
LP53=200 so LQ53=284.75

Similarly, LQ54:LQ62 needs to be filled.
Formula required for LQ53:LQ62
How to accomplish?
 
Last edited:

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.
If Table3 is not 200,column LQ is blank.
Hope this helps.
LQ53=IF(LP53=200,INDEX($LH53:$LK53,1,MATCH($LR$50,$LL53:$LO53,0)),"")
 
Upvote 0
If Table3 is not 200,column LQ is blank.
Hope this helps.
LQ53=IF(LP53=200,INDEX($LH53:$LK53,1,MATCH($LR$50,$LL53:$LO53,0)),"")

It WORKS. Thanks Takae. I changed $LR$50 to $LQ$50
 
Upvote 0

Forum statistics

Threads
1,216,475
Messages
6,130,847
Members
449,599
Latest member
blakecintx

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