Hlookup

CraigRead

New Member
Joined
Jun 12, 2019
Messages
6
Invoices
Name2
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>
</tbody>
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

InvoicesName2
Priority Late
3one treeone cabtwo car
Late3
ordername1
weeks
1one tree2
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>
</tbody>

<colgroup><col width="86"><col width="86"><col width="86"><col width="86"><col width="86"></colgroup> <tbody>
</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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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