Formula Needed

Gamermatt

Board Regular
Joined
May 14, 2009
Messages
186
Hello,

In column A, I have a list of text (not unique). In column B, I have prices that match with the text in column A. Although, many of these cells in column B are empty. I need a formula to put into column C that will look up the text from the corresponding cell in column A, and search the rest of column A for the cells with the same text. If it finds one, it should copy that price and put it into the cell.

Before:


Excel Workbook
AB
1434.99|579.99|Rear Bumpers460
2434.99|579.99|Rear Bumpers*
3434.99|579.99|Rear Bumpers*
4434.99|599.99|Rear Bumpers*
5434.99|599.99|Rear Bumpers500
6434.99|599.99|Rear Bumpers*
Sheet1


After:


Excel Workbook
ABC
1434.99|579.99|Rear Bumpers460460
2434.99|579.99|Rear Bumpers460
3434.99|579.99|Rear Bumpers460
4434.99|599.99|Rear Bumpers500
5434.99|599.99|Rear Bumpers500500
6434.99|599.99|Rear Bumpers500
Sheet1





Matt
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hello,

In column A, I have a list of text (not unique). In column B, I have prices that match with the text in column A. Although, many of these cells in column B are empty. I need a formula to put into column C that will look up the text from the corresponding cell in column A, and search the rest of column A for the cells with the same text. If it finds one, it should copy that price and put it into the cell.

Before:


Excel Workbook
AB
1434.99|579.99|Rear Bumpers460
2434.99|579.99|Rear Bumpers*
3434.99|579.99|Rear Bumpers*
4434.99|599.99|Rear Bumpers*
5434.99|599.99|Rear Bumpers500
6434.99|599.99|Rear Bumpers*
Sheet1


After:


Excel Workbook
ABC
1434.99|579.99|Rear Bumpers460460
2434.99|579.99|Rear Bumpers460
3434.99|579.99|Rear Bumpers460
4434.99|599.99|Rear Bumpers500
5434.99|599.99|Rear Bumpers500500
6434.99|599.99|Rear Bumpers500
Sheet1





Matt
Try this...

<b>Sheet1</b>
Book1
ABC
2434.99|579.99|Rear Bumpers460460
3434.99|579.99|Rear Bumpers_460
4434.99|579.99|Rear Bumpers_460
5434.99|599.99|Rear Bumpers_500
6434.99|599.99|Rear Bumpers500500
7434.99|599.99|Rear Bumpers_500
Sheet1

This array formula** entered in C2 and copied down:

=IF(B2="",INDEX(B$2:B$7,MATCH(1,IF(A$2:A$7=A2,IF(B$2:B$7<>"",1)),0)),B2)

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Try this...

This array formula** entered in C2 and copied down:

=IF(B2="",INDEX(B$2:B$7,MATCH(1,IF(A$2:A$7=A2,IF(B$2:B$7<>"",1)),0)),B2)

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Thank you :biggrin:
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,681
Members
452,937
Latest member
Bhg1984

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