Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Gav
I know about the vlookup formula but I need it to skip the blanks and jsut give me the columns with information in. I.e. there may be a stool in the third column (room 3) but there may be no more for the next forty seven rooms (room 50). I need it to 'filter' the blanks and just put Room 3 Room 50 1 1 instead of Room 1 Room 2 Room 3 Room 4................... Room 50 0 0 1 0 1 "Gav123" wrote: You could use a VLOOKUP, maybe something like... Let's say your data range is A5:E1000 In cell B2 type =VLOOKUP(A2,A5:E1000,2) If you type "Chair" into A2 the result in B2 will be 1 as the formula returns the value from Column 2 in the same row as "Chair". Repeat the formula in B3,B4 and B5 but replace the 2 at the end of the formula with 3 for B3, 4 for B4 and 5 for B5 and it should return all the room numbers. Hope this helps, Gav. Repeat this formula for "raphiel2063" wrote: I'm trying to set up a sort of filter so that I can pull information from one main page. Room 1 Room 2 Room 3 Room 4 Chair 1 2 1 Table 1 2 1 Stool 1 The main data sheet looks (sort of ) like the above with individual products down the left and their locations across the top. In reality there are hundreds of products and hundreds of locations. I want to have a formula/macro which looks up the word 'chair' for example, then returns me the quantity with the corresponding heading (location), but I need it to skip the blanks. I.e. If I ask it to look up 'Chair', the following is displayed Room 1 Room 2 Room 3 Chair 1 2 1 If I asked it look up 'Stool' it would display Room 3 Stool 1 Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Returning looking up all values in a list | Excel Worksheet Functions | |||
Excel - returning column headers in a seperate column | Excel Discussion (Misc queries) | |||
Returning next value from a list | Excel Worksheet Functions | |||
Returning list values | Excel Worksheet Functions | |||
Returning a blank for validation list | Excel Worksheet Functions |