# IF Formula

#### Roopen

##### Board Regular
Hi All,

As always, I am after your help....

I have in column H either "ESPS" "LDCS" "NGDB" and in another workbook (called Assumptions I have the above with say "ESPS = 20%" LDCS = "11% and "NGDB = 30%" Assume cells A1 A2 A3

I want a formula that will state that if the cell in H states ESPS it will multiply column B by 20% (from the assumptions workbook)

Hope the above makes sense ### Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

#### Mr_Roscoe

##### Board Regular
Roopen - maybe not an IF formula but a VLOOKUP.

Create a small table in the Assumptions workbook where:

A1 = ESPS, A2 = LDCS, A3 = NGDB and B1 = 20%, B2 = 11%, B3 = 30%

Then you formula in cell H2 will be:

=B2*VLOOKUP(H2,Assumptions!\$A\$1:\$B\$3,2,0)

trust this helps, Ian R.

#### xld

##### Banned
Try this array formula

=B2*MID(INDEX([Book2]Sheet1!\$A1:\$A10,MIN(IF(ISNUMBER(FIND(H2,[Book2]Sheet1!\$A1:\$A10)),ROW([Book2]Sheet1!\$A1:\$A10)))),
FIND("= ",INDEX([Book2]Sheet1!\$A1:\$A10,MIN(IF(ISNUMBER(FIND(H2,[Book2]Sheet1!\$A1:\$A10)),ROW([Book2]Sheet1!\$A1:\$A10)))))+2,99)

#### Roopen

##### Board Regular
Hi Ian,

The formula works a treat. Thank you ever so much

Regards

Roopen

#### Roopen

##### Board Regular
XLD,

Thank you also, the formula is huge but also works a treat...

Appreciate the swift response

Regards

Roopen

1,106,515
Messages
5,511,740
Members
408,864
Latest member
cmajewsk

### This Week's Hot Topics

• Turn fraction around
Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
• TIme Clock record reformatting to ???
Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
• TextBox Match
hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
• Using Large function based on Multiple Criteria
Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
• Can you check my code please
Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
• Combining 2 pivot tables into 1 chart
Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...