Multiple Ifs with Calculations

melbwarrior

New Member
Joined
Apr 19, 2018
Messages
16
Hi All

Please assist on the below, I am struggling to create a Nested IF statement


Sample Data:

ABC
aaff1
bbgg1
bbgg5
cchh4
aahh5
ccgg6
bbff5
ccff4

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>


What I am looking for is:

If Column A = CC then multiple the number in column C by 2
If Column B = GG then multiple the number in column C by 3
Any other value in column B multiple the column C by 4

Apologies if this is hard to understand

thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hint for next time: When you give sample data, also giving the expected results usually helps clarify your requirements.

Is this what you want?

Excel Workbook
ABCD
1
2aaff14
3bbgg13
4bbgg515
5cchh48
6aahh520
7ccgg612
8bbff520
9ccff48
IF
 
Last edited:
Upvote 0
Hi

Sorry for the delay in getting back to you.

That looks good - I have one more question if that is ok.


ABC
aaff1
bbgg11
bbgg235
cchh4
aahh5
ccgg326
bbff5
ccff4

<tbody>
</tbody>

Could the formula be modified to make the same calculation in Column B for GG, if there a few difference occurences - as per above. (gg1, gg3,gg32). The calculation would still be the same as the previous formula

I can't figure out how to introduce the Find left function into the formula

again thanks for your help
 
Upvote 0
Try
=C2*IF(A2="cc",2,IF(LEFT(B2,2)="gg",3,4))
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,487
Members
448,967
Latest member
visheshkotha

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