ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Selected Cell in a Range Appears in another Cell (https://www.excelbanter.com/excel-worksheet-functions/155766-selected-cell-range-appears-another-cell.html)

Nick'o

Selected Cell in a Range Appears in another Cell
 
I have a group of cells that represent different prices for items. When I
select one of these cells in the range of cells, I want the selected cell's
value to appear in another cell in the the same spreadsheet...

kassie

Selected Cell in a Range Appears in another Cell
 
And when you select the next cell, the value will change again? And again and
so on?
You would be much better off making use of criteria, to select either an A,
B, or C price. Iow, if you insert an "A", you get price 1, a "B" will give
you price 2 and a "C" will give you price 3.

something like the following: In cell A2 you enter the item number, in B2
you enter either A, B or C. Your prices are in a data list named pricing,
with the 1st Column having the item number, Col 2:4 the various price ranges,
and in cell C2 you want to display the relevant price.
in C2 use the following formula:
=IF(B2="","",IF(A2<"",IF(B2="A",VLOOKUP(A2,Pricin g,2,FALSE),if(B2="B",VLOOKUP(A2,Pricing,3,FALSE),I F(B2="C",VLOOKUP(A2,Pricing,4,FALSE),"Enter
A B or C only")))))
--
Hth

Kassie Kasselman
Change xxx to hotmail


"Nick'o" wrote:

I have a group of cells that represent different prices for items. When I
select one of these cells in the range of cells, I want the selected cell's
value to appear in another cell in the the same spreadsheet...



All times are GMT +1. The time now is 04:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com