If Statment Help

Huizar

Board Regular
Joined
Aug 11, 2016
Messages
94
[TABLE="width: 500"]
<tbody>[TR]
[TD]Number
[/TD]
[TD]Fill
[/TD]
[TD]Address
[/TD]
[/TR]
[TR]
[TD]1026
[/TD]
[TD][/TD]
[TD]902 E. Fremont
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]902 E. Fremont
[/TD]
[/TR]
[TR]
[TD]1063
[/TD]
[TD][/TD]
[TD]871 Main Street
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]829 Main
[/TD]
[/TR]
</tbody>[/TABLE]
1263


Hello All, I need help. I'm looking for statement that will help me fill the middle Column. For Example, If the address ha a row number then fill it with the number column number with the number assuming the address Is identical. If No number for the address, then leave it blank. I put a table as an example.

Thank you!!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Is this what you want?


Book1
ABC
1NumberFillAddress
210261026 E. Fremont902 E. Fremont
3902 E. Fremont
410631063 Main Street871 Main Street
5829 Main
6
71263
8
Sheet7
Cell Formulas
RangeFormula
B2=IF(A2="","",IF(ISNUMBER(LEFT(C2)+1),A2 &MID(C2,FIND(" ",C2&" "),99),""))
 
Upvote 0
Hey Eric,

Thanks for the response. Did you see the address match? Then can the formula bring down 1026? so in Other words row 2 and 3 should have 1026.

Thanks!!
 
Upvote 0
OK, try this:

B2: =IF(AND(C2=C1,A2=""),B1,IF(A2="","",IF(ISNUMBER(LEFT(C2)+1),A2 &MID(C2,FIND(" ",C2&" "),99),"")))
 
Last edited:
Upvote 0
Perhaps:
=IF(AND(A2<>"",C2<>""),A2&" "&REPLACE(C2,1,FIND(" ",C2),""),IF(C2=C1,B1,""))


Excel 2010
ABC
1NumberFillAddress
210261026 E. Fremont902 E. Fremont
31026 E. Fremont902 E. Fremont
410631063 Main Street871 Main Street
5 829 Main
61263 
Sheet1
Cell Formulas
RangeFormula
B2=IF(AND(A2<>"",C2<>""),A2&" "&REPLACE(C2,1,FIND(" ",C2),""),IF(C2=C1,B1,""))
B3=IF(AND(A3<>"",C3<>""),A3&" "&REPLACE(C3,1,FIND(" ",C3),""),IF(C3=C2,B2,""))
B4=IF(AND(A4<>"",C4<>""),A4&" "&REPLACE(C4,1,FIND(" ",C4),""),IF(C4=C3,B3,""))
B5=IF(AND(A5<>"",C5<>""),A5&" "&REPLACE(C5,1,FIND(" ",C5),""),IF(C5=C4,B4,""))
B6=IF(AND(A6<>"",C6<>""),A6&" "&REPLACE(C6,1,FIND(" ",C6),""),IF(C6=C5,B5,""))
 
Upvote 0
Hey Scott, is there a way a just to bring in the Number in Cell B (i.e. only 1026).

Thanks!
 
Upvote 0
Like this?


Excel 2010
ABC
1NumberFillAddress
210261026902 E. Fremont
31026902 E. Fremont
410631063871 Main Street
5 829 Main
61263 
Sheet1
Cell Formulas
RangeFormula
B2=IF(AND(A2<>"",C2<>""),A2,IF(C2=C1,B1,""))
B3=IF(AND(A3<>"",C3<>""),A3,IF(C3=C2,B2,""))
B4=IF(AND(A4<>"",C4<>""),A4,IF(C4=C3,B3,""))
B5=IF(AND(A5<>"",C5<>""),A5,IF(C5=C4,B4,""))
B6=IF(AND(A6<>"",C6<>""),A6,IF(C6=C5,B5,""))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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