Vlookup (or range lookup) to consolidate results

bmpreston

Board Regular
Joined
Jun 18, 2016
Messages
120
Office Version
  1. 365
Platform
  1. MacOS
Looking to pull a range of a VLOOKUP if a value exists.

Pull this to a dynamic report from multiple sheets onto one consolidated sheet.

Please see the example:

Texttexttextvalue to match
foofoofoo-1
barbarbar0
foobar1foobar1foobar1-2
helloworldhelloworldhelloworld4

<tbody>
</tbody>
John Snow <--worksheet name

texttexttextvalue to match
foobar1foobar1foobar13
anothervalueanothervalueanothervalue-4
somethingsomethingsomething2
moremoremore-2

<tbody>
</tbody>
Elon Musk <--worksheet name


This is two example sheets of 12 in a workbook.

I need to put the name of the worksheet in a cell; add a few rows for gaps; then bring over the rows with a negative number; few rows, then the new worksheet name; then that sheet's negative values.


The Results would look like this:

John Snow
foofoofoo-1
foobar1foobar1foobar1-2
Elon Musk
anothervalueanothervalueanothervalue-4
moremoremore-2

<tbody>
</tbody>


Thanks!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If I'm understanding correctly, this is much more complicated than using VLOOKUP. Secondly, the way you want the data formatted is not impossible, but is not going to be any more efficient than copy and pasting. As for the lines of data you are requiring, an IFS statement would do the trick, implying you add the name of the workbook to every line of data as a reference point for your formula. Your IFS statement would require you to reference the name of the character and check to see if the "value to match" is negative. If this is correct than you could populate desired cells. But, Excel doesn't know how many negative numbers are in you data set therefore if you did a count on negative numbers in your data set and allotted the appropriate rows to each character you could fill the formula down through those cells.
I hope this makes sense and is of help!
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,488
Members
448,967
Latest member
visheshkotha

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