if(vlookup,vlookup) maybe?

EcomTom

New Member
Joined
Feb 29, 2012
Messages
13
I dont know if this is possible or not. I need to reference two columns in a vlookup to create a table. This seems to be an if statement with a vlookup inside a vlookup referencing the same array. Please see the image below for an example.



vlookupquestion.jpg
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Have you considered using a pivot table? That'd be the best solution for me I think.

Otherwise...
[H3] =SUMPRODUCT(--($G3=$A$3:$A$8), --(H$2=$B$3:$B$8), $E$3:$E$8)/SUMPRODUCT(--($G3=$A$3:$A$8), --(H$2=$B$3:$B$8))

Regards
Adam
 
Upvote 0
I think the formula is perfect. I have to test it on the full project now.

The idea is to have the vlookup done for 5000 rows and 15 or so columns referecing 4 tabs of data that is compiled throughout the month. Then all I have to do is drop in the SKU to get the desired result.

Thanks for the quick reply. It took me longer to do the post then to get the reply. :)
 
Upvote 0
How were you able to upload a picture into the thread? I am trying to do it the way I know how, but it doesn't seem to be working.
 
Upvote 0
I think the formula is perfect. I have to test it on the full project now.

The idea is to have the vlookup done for 5000 rows and 15 or so columns referecing 4 tabs of data that is compiled throughout the month. Then all I have to do is drop in the SKU to get the desired result.

Thanks for the quick reply. It took me longer to do the post then to get the reply. :)

No problem. Thanks for the feedback. I would recommend checking out the Pivot Tables as well as they might help you, if not with this, then with something else.

Regards
Adam
 
Upvote 0
How were you able to upload a picture into the thread? I am trying to do it the way I know how, but it doesn't seem to be working.

<p> I upload the image to Photobucket.com then take the url provided and insert it through the "Insert Image" button</p>
 
Upvote 0
No problem. Thanks for the feedback. I would recommend checking out the Pivot Tables as well as they might help you, if not with this, then with something else.

Regards
Adam

<p> Pivot tables wont produce the desired result. I used your formula and normal vlookup to create a tool that I give to other people at work so I wont have to continually make the same data query's throughout the month. The tool references tabs in the excel doc that contain multiple reports that multiple people do throughout the month. I do use Pivot tables to create the reports that feed the reference tool I created with your formula. This tool will prevent the document from having to be sent to many different people so they can add their data. The elimination of the email chain will create a quicker response time for the document purpose. </p>

Thanks again for your help
 
Last edited:
Upvote 0
Pivot tables wont produce the desired result. I used your formula and normal vlookup to create a tool that I give to other people at work so I wont have to continually make the same data query's throughout the month. The tool references tabs in the excel doc that contain multiple reports that multiple people do throughout the month. I do use Pivot tables to create the reports that feed the reference tool I created with your formula. This tool will prevent the document from having to be sent to many different people so they can add their data. The elimination of the email chain will create a quicker response time for the document purpose.


Thanks again for your help

Good times. Glad you've got a solution that works :)

Regards
Adam
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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