Problem with IF formula in Query

Riaang

Board Regular
Joined
Aug 29, 2002
Messages
146
Hi all,

I have a database on which I wrote some queries. On query is to group different codes together. For eg. in column A I have different kinds of codes. Now in column B I want like a group name.

I have tried the IF formula but are stuck. What I want in the if formula is te following.

If column A = Collect_Y then put Pending in column B, if column A is null then put Active in column B and if column A = any thing else (not null and not = Collect_Y) then put Suspended in column B

Example.
.......A.....................B
1...Collect_Y.........Pending
2...Group.............Suspended
3...Collect_Y.........Pending
4...(empty)..........Active
5...0003..............Suspended
6...(empty)..........Active

I would appreciate any help.

Thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try Something like this

=IF(ISBLANK(A3),"ACTIVE",IF(A3="COLLECT_Y","PENDING","SUSPENDED"))
 
Upvote 0

Forum statistics

Threads
1,221,773
Messages
6,161,855
Members
451,724
Latest member
sledparty

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