IF formula with multiple conditions

peanaboo

New Member
Joined
Jul 3, 2011
Messages
3
I have a spreadsheet where column D contains a 4-8 character code.

AAISDJ
KDFJS
PSDFS
PDDSP
PASF

If the first character is P and the fourth is F I need "Verify" to be put in column H

AAISDJ
KDFJS
PSDFS Verify
PDDSP
PASF Verify

Is this something that can be accomplished?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I have a spreadsheet where column D contains a 4-8 character code.

AAISDJ
KDFJS
PSDFS
PDDSP
PASF

If the first character is P and the fourth is F I need "Verify" to be put in column H

AAISDJ
KDFJS
PSDFS Verify
PDDSP
PASF Verify

Is this something that can be accomplished?
Try this...

Book1
DH
2AAISDJ
3KDFJS
4PSDFSVerify
5PDDSP
6PASFVerify
Sheet1

Formula entered in H2 and copied down:

=IF(AND(LEFT(D2)="P",MID(D2,4,1)="F"),"Verify","")
 
Upvote 0
Try

=IF(AND(LEFT(D1,1)="P",MID(H1,4,1)="F"),"Verify","")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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