Microsoft Excel Multiple IFs condition, and result

Andrian2712

New Member
Joined
Nov 17, 2023
Messages
6
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Platform
  1. Windows
Hello, im having a problem with my formula, i wanted multiple condition, and multiple result, here is what i got for now.

Formula : =IF(C6="BADRUN",7000,IF(C6<>"BADRUN",8000,IF(RIGHT(C6,1)="E",12000,IF(RIGHT(C6,1)="C",5000))))

im putting this formula at "KILOAN" - "HARGA"

My condition,
if NAMA = BADRUN, then HARGA = 7000
if NAMA is not BADRUN, then HARGA = 8000
if NO (number) is having E on its right digit, then = 12000
if NO (number) is having C on its right digit, then = 5000


Help will be so appreciated.
Thankyou
 

Attachments

  • image_2023-11-21_173126451.png
    image_2023-11-21_173126451.png
    10.5 KB · Views: 10

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try this

=IF(C6="BADRUN",7000,IF(RIGHT(C6,1)="E",12000,IF(RIGHT(C6,1)="C",5000,IF(C6<>"",8000,""))))
 
Upvote 0
Try this

=IF(C6="BADRUN",7000,IF(RIGHT(C6,1)="E",12000,IF(RIGHT(C6,1)="C",5000,IF(C6<>"",8000,""))))
ohh, i just misplaced my formula, thats how if functions work, okay thankyou for your help, really appreciated. have a good day
 
Upvote 0

Forum statistics

Threads
1,224,894
Messages
6,181,618
Members
453,057
Latest member
LE102024

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