IF formula imbedded with concatenation

Peggy2015

Board Regular
Joined
Oct 19, 2015
Messages
109
Hello,
How do I write a formula to:
1. Determine if a cell is labelled "Cash", "Cheque" or "EFT"
2. If it is then I need to concatenate certain cells together.

Example:


Thanks for your help.

Best wishes,
Peggy
ABCDEF
1CashStationery{formula = }Cash - Stationery
2CashCards{formula = }Cash - Cards
3
4ChequeRooms{formula = }Cheque - Rooms
5
6EFTStationery{formula = }EFT - Stationery
7EFTCards{formula = }EFT - Cards

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
From your data I am not sure why you need an IF statement, if your data is laid out that way then you can just use concatenate.
 
Upvote 0
Hi!

Try this in D1 and copy down:

=IF(OR(A1={"Cash";"Cheque";"EFT"}),A1&" - "&B1,"")


ABCDE
1CashStationeryCash - Stationery
2CashCardsCash - Cards
3TextA01TextB02
4ChequeRoomsCheque - Rooms
5TextA02TextB03
6EFTStationeryEFT - Stationery
7
8TextA03TextB04
9ETFCards
10
*****************************************

<tbody>
</tbody>


Markmzz
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,090
Latest member
vivek chauhan

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