two numbers to one cell

johnny52

Active Member
Joined
Oct 13, 2006
Messages
332
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
Let's say I have two numbers in cell A1 (1,1A )

is there a way to construct a formula in B1 something like this =if(a1="1A",if(a1=1,1,""))

unfortunately they have to stay in the same cell.........the cell is used in other parts of a bigger worksheet.

Thanks everybody
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Give this formula a try (I have highlighted the two numbers you are searching for in red (in case you want to change them for other searches)...

=IF(AND(ISNUMBER(SEARCH(","&"1"&",",","&A1&",")),ISNUMBER(SEARCH(","&"1A"&",",","&A1&","))),1,"")
 
Upvote 0
I have a doubt, you want the result 1 or the first number of the binomial.

Another option:

=IF(TRIM(SUBSTITUTE(SUBSTITUTE(A1,"A1",""),",",""))="1",1,"")
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0
I wanted the result 1 Rick's reply did the trick Thanks
 
Upvote 0
Would you mind if I ask you another question I'm having an issue with a vlookup formula that is only returning the first value....I think and index match might work
 
Upvote 0
Vlookup and index match will only return the first result. You can return more by using a index small if formula. Explain what you need and someone can help you.
 
Upvote 0
Do you want to obtain several results or a particular result?
Explain with examples what you have and what you expect results.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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