If Formula for alphabets

Hiteshtanya

New Member
Joined
Jan 20, 2021
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
1. I am having one column with different material names in only alphabets (No any numbers).
2. They all materials are having their values
3. How can I put "If" formula for any other files where it needed same values for same materials.

Eg.
MaterialsCross Value
Plastic
0.8​
Irons
0.37​
Silver
0.18​
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If you want the values of requisite material on another sheet so use vlookup

=vlookup($A2,A1:A10,2,0)

you should write this formula in 2nd sheet where the value of such material is required
A2 should the first material already written in the 2nd sheet and A1: A10 is the range that should be selected from your given sheet i.e. sheet 1

Hope this works :)
 
Upvote 0
If you want the values of requisite material on another sheet so use vlookup

=vlookup($A2,A1:B4,2,0)

you should write this formula in 2nd sheet where the value of such material is required
A2 should the first material already written in the 2nd sheet and A1: A10 is the range that should be selected from your given sheet i.e. sheet 1

Hope this works :)
 
Upvote 0
I know I can take this with "Vlookup" but I want to apply "IF" formula if I can.
 
Upvote 0
I know I can take this with "Vlookup" but I want to apply "IF" formula if I can.
You will need to nest IF statements then, which can get to be long and unwieldy pretty quickly, if there are more than a few options. And there is also a limit to how many IF statements can be nested in a single formula.

With the three in your example, it would look something like:
Excel Formula:
=IF(A2="Materials",0.8,IF(A2="Irons",0.37,IF(A2="Silver",0.18,"Not found")))

You should be able to follow the pattern, and easily add more conditions for more options.
 
Upvote 0
Solution
You are welcome.
And welcome to the board, by the way! :)

As was mentioned by the other posters, VLOOKUP (or INDEX/MATCH) is usually the preferred option, as the formula is much shorter, and it is much easier to update for changes (simply add rows to your lookup table). If you set-up your VLOOKUP formula correctly, you can make changes and not have to update your formulas. Whereas, if you are using IF formulas, and something changes, you need to update every single IF formula.

Just something to keep in mind going forward...
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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