Need help with If Function between sheets

pearl11

New Member
Joined
Dec 16, 2010
Messages
30
I am trying to simplify having to input fixed information.

I have information on two excel sheets/tabs

One sheet is where i want to input data

the other sheet is where i want it to grab the info.

So if I put in 3 in A1, it will look on the second sheet and grab a number from B3 and place this number in A2 (on the first sheet).

If I put in 2 in A1, it will look on the second sheet and grab a number from B2 and place this number in A2 (on the first sheet).

I was able to figure out how to it for one number, but if you ask other numbers it doesn't work.

=IF(A1=3,Sheet2!B3)

so that formula works for the number 3. what if I put in the number 2 or 9 or 211?

Any suggestions?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Well, that's no reason to NOT get coffee! :biggrin:

Also, be sure to check the Excel help files on formulas you are unfamiliar with. They usually have decent explanations to answer basic questions.
 
Upvote 0
=VLOOKUP(A1,Sheet2!A:B,2,0)

I really want to use this formula (and I thought I figured it out but i didn't)
instead of entering the number from A1 on Sheet 1 (my original question)
I am entering the number from AB4 on sheet 1

the information on the second sheet is coming from B3

I am getting an unknown range error

So on the first sheet AB4 (AB5 and so on) is where you plug in a number between 1 to 200 which is the weight. When this number is put in, it will reference the second sheet which has numbers in the A column 1-200.
If it is AB4 (on the first sheet) is 5, it will look in the A column (on the second sheet) for 5 and then give me the number (on the second sheet) in B7 cell, then put this number in AG4 (on the first sheet).

Same formula but for some reason I am getting unknown range error

First Sheet
AB Column AG Column
Weight Number put in These number would draw from
Can start entering in AB4 (and so) column B second page




Second sheet

Column A Column B
1 5
2 5.5
3 6
4 6.5
5 7
 
Upvote 0
Jeff1022
album
 
Upvote 0
Your screenshots did not post correctly.

It might be the way the sheet is being called, what are the exact names of the sheets you are using? And which of those sheets are you trying to find the data on?
 
Upvote 0
ok I got it to read from different pages

now how do I get it to read on the second sheet ie sheet2 from column C instead of column b?

would that be =VLOOKUP(AB12,Shipping!A:C,2,0)?
 
Upvote 0
Ahh - I see now.

=VLOOKUP(AB12,Shipping!A:C,3,0)

You needed to tell the LOOKUP function to look at columns A through C (the Shipping!A:C part), and then tell it to look at the third column in that array (A is the first column, B is the second, C is the third)

Use these three formulas to get your Cost A, Cost B, and Cost C respectively:

=VLOOKUP(AB12,Shipping!A:D,2,0)
=VLOOKUP(AB12,Shipping!A:D,3,0)
=VLOOKUP(AB12,Shipping!A:D,4,0)
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

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