Help needed!!! Index or vlookup

Tricker

Board Regular
Joined
Nov 6, 2009
Messages
56
Table 1

ID


Country
1United States
2United States
3United States

<colgroup><col><col></colgroup><tbody>
</tbody>

Table 2
IDFinal RegionSub-regionuser
1AmericasUnited States5
2Americascanada3
3AmericasLatin America1

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

I need to bring in "User" col from table 2 to table 1, when ID matches in both tables but when sub-region in Table 2 is "United States"

<tbody>
</tbody>
PLEASE HELP!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Because, there is project I am working on where I have to compare IDs and region in two sheets and bring price from one sheet to the other and compare price from both sheets. So that I know what the difference is in two sheets. Not sure if that makes sense.

Sheet 1
IDSRegionPrice
123Asia1
456America2
789Europe3
Sheet 2
IDSRegionPricePrice from Sheet 1Difference
123Asia413
456America523
789Europe633

<colgroup><col span="3"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Have you tried SUMIFS? That would work if there can be only one combination of IDS and Region. The other possibility is a consolidated pivot table:

Excel Pivot Table Tutorial -- Multiple Consolidation Ranges



Sumifs won't work. there can be one ID matching 4 regions.

Also, consolidated pivot table also wont work because i need to know the difference in price, also two sheets are totally different in terms of headings and formats.

Thanks,
RR
 
Upvote 0
SUMIFS will work if there is only one combination of ID and Region. Example:

=SUMIFS(Sheet2!C:C,Sheet2!A:A,A2,Sheet2!B:B,B2)

I think you'll find that it's a lot faster.
 
Upvote 0
Hi Andrew,

I need your help with a formula.
Below is the pricing table, I need a formula that, if a client has 15 users, then 5 users will be priced $100, 4 users will be priced at $200, and 6 users will be priced at $300. Hence my pricing is = (5*100+4*200+6*300)= $3100. Please help. Thanks a lot.
UsersPrice
1-5$100
6-9$200
10-19$300
20-49$400
50-499$500

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,016
Members
449,414
Latest member
sameri

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