Multi IF Formula not working

BernardJWright

New Member
Joined
Feb 23, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hoping someone can find the quick and easy fix to this.
P26 should equal U2, but I can't see why not.

Cheers all!
 

Attachments

  • excel issue.png
    excel issue.png
    32.6 KB · Views: 7

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to the MrExcel board!

We cannot see your row numbers or copy that data for testing.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Thanks, but that still would require a lot of manual typing (with possible errors) and not knowing whether the date/time cells are numerical or text etc.
Also, your initial post/image referred to P26 & showed a formula.
This latest image looks like it is P24 not P26. :confused:
An XL2BB sample would easily resolve all that. Best if you can make it as easy as possible for people who want to help you. :)
 
Upvote 0
Your formula logic is wrong because you used & instead of AND() and you refer to O24 and O26 in different parts; I can't tell if that is intentional
 
Upvote 0
There are a number of inconsistencies as has already been pointed out. Taking a guess at them give this a try.
Excel Formula:
=IF(O24="PMC",$R$2*O25,IF(O24="AKE",$S$2*O25,IF(AND(O24="LOOSE",E24>=400),E24*$T$2,IF(AND(O24="LOOSE",E24<=399),$U$2,"NONE"))))

I find it easier to read if you do something this:
Excel Formula:
=IF(O24="PMC",
          $R$2*O25,
           IF(O24="AKE",$S$2*O25,
                 IF(AND(O24="LOOSE",E24>=400),
                       E24*$T$2,
                       IF(AND(O24="LOOSE",E24<=399),
                              $U$2,
                             "NONE"))))
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,232
Members
449,092
Latest member
SCleaveland

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