kelvin_9

Active Member
Joined
Mar 6, 2015
Messages
444
Office Version
  1. 2019
hello all, i need hand on a IF+AND formula, how can i amend it with my request?

Code:
=IFERROR(IF(AND(--LEFT(C59,5)>=--LEFT(B59,5),--RIGHT(C59,5)<=--RIGHT(B59,5)),"","WRONG"),"")

is it possible to return one more request with "NO GIVEN" when it encountered "#N/A"

thanks,
have a great day
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Encountered "#N/A" in which cell B59 or C59 (I am assuming B59)? what version of Excel are you using?
 
Upvote 0
Encountered "#N/A" in which cell B59 or C59 (I am assuming B59)? what version of Excel are you using?

i apologize for the confuse, MARK858
i use it to return my result like this:

column Bcolumn CColumn D
00:00-18:0009:15 - 17:00
Code:
=IFERROR(IF(AND(--LEFT(C69,5)>=--LEFT(B69,5),--RIGHT(C69,5)<=--RIGHT(B69,5)),"","WRONG"),"")

<tbody> </tbody>

sometimes #N/A will return in column C, so i want column D with my answer - "NO GIVEN" when it is encountered
PS: excel 2013

thanks MARK
 
Last edited:
Upvote 0
...
=IF(ISNA(C59),"NO GIVEN",IFERROR(IF(AND(--LEFT(C59,5)>=--LEFT(B59,5),--RIGHT(C59,5)<=--RIGHT(B59,5)),"","WRONG"),""))
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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