I started building an excel spreadsheet with a database of items in Microsoft Excel 2010. Those items have some fixed max values on its properties according the type of them. Those values are stored in another hidden table according the type of the item and of course are different in each of them. For example the hidden table its something like this:
Type | Price | Warranty
TV | 1683 | 4
PC | 1210 | 1
A/C | 1234 | 2
So now whenever i create a new item in my main table those properties will get a data bar color formatting compared to the other hidden table! Like:
TV | Sony Bravia RT219 | 1293 | 2
…and those “1293” and “2” values needs to get a data bar “comparing” the “1293” value with the max “1683” and so on…
I wish that you can understand me. Which formula i have to use so i can make this possible in ms excel 2010?
You can probably do what you want using worksheet functions (no vba) and conditional formatting
Sheet2!A1:A3 is a reference to your hidden list, mine only has 3
It looks at the value of A1 on the first sheet, tries to find it in the hidden sheet.
If it finds a result, MATCH() returns its row number.
ADDRESS() then returns the address of the 2nd column on the MATCH() row in sheet2
INDIRECT() then gets the value of it.
MATCH(LOOKUPVALUE,LOOKUPLIST,MATCHTYPE)
ADDRESS(ROW, COLUMN, ABSOLUTE, A1/R1C1, SHEET)
INDIRECT(ADDRESS)
you should be able to have it pull all the information from the 2nd sheet using that.
dont have time to explain anymore, but the functions aren’t that hard to figure out
update
made a simple example https://dl.dropbox.com/u/10316127/example.xlsx
[SEARCH_VALUE] is a Cell in your visible sheet containing the “Type” you want to lookup.
[COLUMN] is the column number that corresponds to the column you want to read from. (2 for Max Price and 3 for Warranty)
I didn’t really understand your last comment, so without an example or a slightly more detailed explanation of what you need I cant help much more.