Formula for Calculating weights

Andy66

New Member
Joined
Oct 2, 2017
Messages
9
Hi

I'm trying to find a way to calculate the weight of a container based on whether I add 1,2,3,4 or 5 in a cell that references figures from another sheet.
For Example

In sheet "Weights" I have 5 cells with 40, 200, 480, 760, 1040 these are weights from an irregular shaped container based on 20% intervals which are marked on the side of the container.
In the main sheet I want to add either 1-5 to show how many marks of 20% the measurement is of the container from the outside.
So if it measures 40% that would be 2, therefore when I enter 2 in cell P5 I want O5 to insert 200 from the weights worksheet. Or if its 4 then it would insert 760 to O5

I think it's an IF statement but I cannot get it to work

Thank you

Andy
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
You could use choose function for that:

=CHOOSE(P5,40,200,480,760,1040)
 
Upvote 0
Hi, if those five cells are A1:A5 for example, you could try:

=INDEX(Weights!A1:A5,P5)

That works nicely thank you, however in O5 and O6 it has placed 500 and 660 in it
The weights in the "Weights" worksheet are E2:E5 in this case 40, 180, 340, 500, 660 so when I add the formula to Col O in the other worksheet I get the 500 and 660 added as it references the figures in E5 and E6 where I would ideally like nothing in Col O until I add 1-5 in Col P
 
Upvote 0
I would ideally like nothing in Col O until I add 1-5 in Col P

HI, not sure I fully understood everything in that last post but I think you want something like:

=IF(P5="","",INDEX(Weights!A1:A5,P5))

Adjust the A1:A5 range as appropriate.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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