Data in one column to equal different data in another

StorageQueen24

New Member
Joined
Apr 30, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

In column B I have a list of unit sizes 10x10, 10x15, 10x20 etc. and in column G is the price of that unit size. They are not in order on the spreadsheet. I want to type the data in column B and have it automatically populate the rate into column G. Is that possible? The prices change monthly and it would be nice if I didn't have to go cell by cell to change them.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
welcome to the forum. I am guessing you are typing the sizes into a 3rd column and wanting the lookup to go into a 4th column?
Otherwise, I'm not sure what you mean? Are rate and price referencing the same cell value?

Maybe put a validation list drop down in a cell, and a formula next to it:

Book1
ABCDEFGHIJK
1SizePrice
210 x 1010010 x 15120
310 x 15120
415 x 15140
515 x 20180
620 x 20 200
Sheet3
Cell Formulas
RangeFormula
K2K2=XLOOKUP(J2,$B$2:$B$6,$G$2:$G$6,"not found",0)
Cells with Data Validation
CellAllowCriteria
J2List=$B$2:$B$6


1714483313232.png


1714483229980.png
 
Last edited:
Upvote 0
This is a sample of my spreadsheet.

1714484304981.png


I want to change the price of all 5x10 to read $85. We may change the prices later and I would like to change all 5x10 to $95.
 
Upvote 0
1. Click anywhere in that grid of data,
2. Go to Data Ribbon,
3. Click Filter (the funnel Icon)
4, Click the drop down by the size,
5. uncheck the "select all" check box
6. Find the size you want (5x10) click that check box
7. Click OK
8. Select all of the prices column (not the header row)
9. Type the new price
10. Hold The CNTL Key down and Press Enter

(in step 1, if you have blank columns and rows you need to select the entire data grid, and not just one cell).

If you have a separate master table with your prices.
you can copy this formula in the price column:
(assuming youre in row 2, and size is column B
in the price column (column G???) row 2:
so, in cell G2:
Excel Formula:
=xlookup(B2,"LookupTableSize","LookUpTablePrices",0)
 
Last edited:
Upvote 0
Solution
1. Click anywhere in that grid of data,
2. Go to Data Ribbon,
3. Click Filter (the funnel Icon)
4, Click the drop down by the size,
5. uncheck the "select all" check box
6. Find the size you want (5x10) click that check box
7. Click OK
8. Select all of the prices column (not the header row)
9. Type the new price
10. Hold The CNTL Key down and Press Enter

(in step 1, if you have blank columns and rows you need to select the entire data grid, and not just one cell).

If you have a separate master table with your prices.
you can copy this formula in the price column:
(assuming youre in row 2, and size is column B
in the price column (column G???) row 2:
so, in cell G2:
Excel Formula:
=xlookup(B2,"LookupTableSize","LookUpTablePrices",0)
Perfect! Thank you!
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,883
Members
449,477
Latest member
panjongshing

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