formula needed

kylefoley76

Well-known Member
Joined
Mar 1, 2010
Messages
1,553
Screenshot2013-09-22at55948PM.png


I need a formula that can produce column D. Essentially, column B equals column A. So using column C I should be able to produce D.
 
maybe i'm not understanding the direction, control shift enter and copy down correctly. i have a mac if that means anything but i doubt it. i press control shift and enter but how can i copy down after that?
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
maybe i'm not understanding the direction, control shift enter and copy down correctly. i have a mac if that means anything but i doubt it. i press control shift and enter but how can i copy down after that?

Control+shift+enter seems to be command+Return on Mac.
 
Upvote 0
no, that doesn't do it. this formula works


Use only Enter to enter the formula=LOOKUP(99^99,SEARCH("|"&MID(C1,1,FIND(",",C1)-1)&"|","|"&$B$1:$B$6&"|"),$A$1:$A$6)&","&LOOKUP(99^99,SEARCH("|"&MID(C1,FIND(",",C1)+1,99)&"|","|"&$B$1:$B$6&"|"),$A$1:$A$6)we should be able to figure out how to get that to work for 7 or 8 digits. it looks like you just have to expand a little. </pre>
 
Upvote 0
i think it's working but still a few problems. i tried to make some adjustments and the brackets disappeared. when they disappeared it stopped working. it seems that i need brackets around the formula for it to work. i can't get the brackets to reappear. i've tried command shift return and all those combinations and i can't get the brackets to reappear.
 
Upvote 0
Edit the formula, then use Command+Return to enter it as an array formula.
 
Upvote 0
This formula only works with 2 numbers in column c. Sometimes I might have up to 5 or 6 numbers in column c.
Hi Kylefoley76,

Try this big formula (use only Enter):

Code:
=SUBSTITUTE(SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),1)&
IFERROR(","&SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),2),"")&
IFERROR(","&SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),3),"")&
IFERROR(","&SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),4),"")&
IFERROR(","&SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),5),"")&
IFERROR(","&SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),6),"")&
IFERROR(","&SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),7),"")&
IFERROR(","&SMALL(INDEX(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2))*$A$2:$A$7,),8),""),"0,","")

Markmzz
 
Upvote 0
A small modification:

Code:
Array formula - use Ctrl+Shift+Enter and not only Enter to enter the formula

=IFERROR(SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),1),"")&
IFERROR(","&SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),2),"")&
IFERROR(","&SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),3),"")&
IFERROR(","&SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),4),"")&
IFERROR(","&SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),5),"")&
IFERROR(","&SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),6),"")&
IFERROR(","&SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),7),"")&
IFERROR(","&SMALL(IF(ISNUMBER(SEARCH(","&$B$2:$B$7,","&C2)),$A$2:$A$7),8),"")

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,547
Messages
6,125,461
Members
449,228
Latest member
moaz_cma

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