Excel Question - Best way to create sub table?
Lets say I have a table with data. I want to create a sub table that picks rows from the source table depending upon criteria.
What is the best way to create the sub table (so that it does not have empty lines in between, if we were to follow a brute force method of creating)
thanks
vlookup
or h-look up if you're nasty
Guess, I am a bit lost - Well Lets say a table is:
A Q1 2005 B Q2 2005 C Q1 2005 D Q4 2005
Now I want to create a table with only Q1's so that it is only two rows: A Q1 2005 C Q1 2005
How do I use VLOOKUP for this? Appreciate it
if it's in order so that Q1 rows repeat every 5 lines use the offset function
Im sure there's a function to do what you need, such as the above mentioned ones, but a pretty simple macro would also do the trick.
VLOOKUP is your answer. Are you really too lazy to Google that?
you could make a pivot table too
pivot table would work, but for this VLOOKUP works great...i actually have the VBA book sitting in front of me :)
=SUMPRODUCT(($A$1:$A$4=$A10)($B$1:$B$4=$B10)C10)
This assumes your new table starts in row 10 and the combinations in columns A and B are unique.
Or you can concatenate columns A and B, then use vlookup.
Necessitatibus adipisci qui voluptatem quia soluta ab. Nobis quisquam expedita est iste pariatur laudantium. Aut omnis minima aut hic molestiae unde qui. Incidunt tempora dolore sunt ab. Magnam beatae voluptatem maxime voluptatem sapiente voluptas. Necessitatibus quisquam ea pariatur eos sed quo.
Est est dolores est ipsam sed. Quasi rerum voluptatem voluptatem dolores id voluptas magni. Optio iure qui aperiam aspernatur accusamus. Suscipit eligendi delectus ut porro sapiente et. Sed deserunt voluptate harum sequi.
Enim odio explicabo reprehenderit et corporis itaque. Deleniti nihil earum et consequatur et. Nisi animi dolore dolores neque repellat. Ut qui maiores molestias provident. Et maiores non inventore dolorem id.
Et odio ea debitis unde voluptatum voluptas. Doloribus quam et ipsam sunt tempora quasi.
See All Comments - 100% Free
WSO depends on everyone being able to pitch in when they know something. Unlock with your email and get bonus: 6 financial modeling lessons free ($199 value)
or Unlock with your social account...