Hlookup

CraigRead

New Member
Joined
Jun 12, 2019
Messages
6
OK here goes. this is a quick example of what i am trying to do. table size A1:E11

Invoices is in A1.
I would like to be able to copy the name from B6:B11 to the cells under Name 2 if they are at 2 weeks delay

So in C2:E3 under name2 i would like to be able to populate this with the Names from Name1 if they are at 2 weeks

I would like it to look like this if possible


<colgroup><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"></colgroup> <tbody>
[TD="width: 86"]Invoices

<colgroup><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"></colgroup> <tbody>
[TD="width: 86"]
Priority3


Late3
ordername1
weeks
1one tree
2
2two tree1
2one cab2
4two cab1
5one car1
6two car2

<colgroup><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"></colgroup> <tbody>
[TD="width: 86"]Invoices[/TD]
[TD="width: 86"]
[/TD]
[TD="width: 257, colspan: 3"]Name2
[/TD]

</tbody>
[/TD]
[TD="width: 86"][/TD]
[TD="width: 257, colspan: 3"][/TD]
Priority Late
3one treeone cabtwo car
Late3
ordername1
weeks
1one tree2
2two tree1
2one cab2
4two cab1
5one car1
6two car2

[TD="width: 86"][/TD]
[TD="width: 257, colspan: 3"]Name2
[/TD]

</tbody>
[/TD]

</tbody>
 
i will test it out tomorrow in work. if you look at my formula in the screen shot

The results are taken from Column b7:b107

so it posts into C2:H5

not everything will be included in column B when the sheet is finalised.
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
i will test it out tomorrow in work. if you look at my formula in the screen shot

The results are taken from Column b7:b107

so it posts into C2:H5

not everything will be included in column B when the sheet is finalised.

Just adjust the formula, change 100 to 107.
Try the new formula and tell me.
 
Upvote 0
Sorry for the delay. it is working great.

Jut on final question is there anyway to have it return a blank cell, if it is outside h criteria. currently it is retuning #NUM in the unused cells
 
Upvote 0
Try this array formula



{=IFERROR(INDEX($B$7:$B$107,SMALL(IF(($C$7:$C$107=2)*ROW($C$7:$C$107)=ROW($C$7:$C$107),ROW($C$7:$C$107)),COLUMNS($C$1:C1)+(ROW(B1)-1)*6)-ROW($B$6)),"")}

Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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