combine formula into one formula

jmkerzic

New Member
Joined
Jul 5, 2019
Messages
31
Not sure how to combine this into one formula.

=IF(ISNUMBER(SEARCH("m",Invoices!C2)),"DC","DS")
=IF(ISNUMBER(SEARCH("c",Invoices!C2)),"DC","DS")

Thanks,

Matt
 

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,)
Thanks.

I need a formula for the following please:

I have a column that has the following in it, and I want it to search and return the value.

any number = 5210
m = 5215-25
c = 5240-45
b = 5240-40

So if there is a number return,5210, M return 5215-25, a C return 5240-45, and b return 5240-40.

Matt
 
Upvote 0
Is this what you need?


Book1
AB
1StartValue
215210
3m5215-25
4c5240-45
5b5240-40
6235210
7c5240-45
Invoices
Cell Formulas
RangeFormula
B2=IFERROR(VLOOKUP(A2,{"m","5215-25";"c","5240-45";"b","5240-40"},2,0),5210)


Note that this only works if you have the actual value "m" (or "M"). If the m is part of a larger string like "123m" then I'll need to revise this.
 
Upvote 0
Thanks Eric. It should work. I onle have one character in the column where the formula is referencing.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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