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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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