Return value based on information in chart

Rportz

Board Regular
Joined
Mar 24, 2016
Messages
55
A
B
C
D
E
1123
2
Anderson
1074
1261
1329
3
Camp1118
1313
1384
4
Gregg
1079
1268
1336

<tbody>
</tbody>


Question:

If user enters the number "1" in a cell and enters "Anderson" in another cell, I want to return 1074 based on the above chart, but if user enters "Camp" in a cell and "2" in another cell, I want the cell to return 1313 and so on...

User enters:
Enter County
Anderson
Enter Number
1
Cell Returns:
1074

<tbody>
</tbody>


Any help that you can provide?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about


Excel 2013 32 bit
ABCDEFGHIJ
1123
2Anderson107412611329Enter CountyCamp
3Camp111813131384Enter Number2
4Gregg107912681336Cell Returns:1313
Don't delete
Cell Formulas
RangeFormula
J4=VLOOKUP(J2,A2:D4,J3+1,FALSE)
 
Last edited:
Upvote 0
Thank you so much; however, I've tried using vlookup as you have indicated with no luck.
 
Upvote 0
CountyNumber of Persons in Family
12345
Anderson 1,074.001,261.001,329.001,482.001,506.00
Camp 1,118.001,313.001,384.001,543.001,568.00
Cherokee 1,079.001,268.001,336.001,490.001,514.00
Gregg 1,218.001,430.001,507.001,680.001,707.00

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

County of Residence:Camp
Household Size:3
Cell Returns: $ 1,384.00

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Where is it in the sheet, ie what rows/columns?
What cells hold camp, 3 & the formula?
 
Upvote 0
Where is it in the sheet, ie what rows/columns?
What cells hold camp, 3 & the formula?

A
B
C
D
E
1
Household Size:
1
2
3
4
2
Anderson
1,0741,2611,3291,482
3
Camp
1,118
1,313
1,384
1,543
4
Cherokee
1,079
1,268
1,490
1,514
5
Gregg
1,218
1,430
1,507
1,707
6
User Enters a County (from above)
Camp



7
User Enters Household size (from row 1)
2



8
Cell returns the data based on county & household size that is entered:
1,313

<tbody>
</tbody>

I hope this is makes sense.
 
Upvote 0
In that case try
=VLOOKUP(B6,A2:D5,B7+1,FALSE)
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,361
Members
449,080
Latest member
Armadillos

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