How to return multiple values Horizontally & vertically of a lookup if condition met using VBA?

Sailingexcel

New Member
Joined
May 23, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi !

I'm looking for any solution to first horizontally lookup an Value from a drop down list, When horizontally "name" found i want to start lookup vertically down to check if cell contains value "x" and if it does so i want to return a value for another column.

Description from the pictures:
In Tab "Front page Automated" I'm selecting a position Cell (B3) (merged cell). Based on this selection I want to lookup and return applicable job familiarization to be completed for the chosen position. These are to be pasted from Cell (D11) and down.. (D13),(D15) etc. (merged cell). If (D11) contains value if criteria met earlier in the sting it should be pasted in the cell below (D13) and so on..

In Tab"DATA input sheet" I want to start look for the position chosen in (B3) above. from cell (G3) and horizontally to the right. If condition met, in this case 3rd officer (column L) I than want to start looking down vertically it any cell contains "x". I found I want to copy the value on the same but from column C and paste on the frontpage in cell D11, however if D11 contains value than past in D15 etc.

Looking for a solution to use a VBA code for this. Any tips much appreciated :)
 

Attachments

  • Fam excel.JPG
    Fam excel.JPG
    83.3 KB · Views: 14
  • data input.JPG
    data input.JPG
    156.9 KB · Views: 15
  • tabs.JPG
    tabs.JPG
    14.6 KB · Views: 14

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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