Formula Error

Dastnai

New Member
Joined
Oct 26, 2018
Messages
45
Hi Everyone,

I am extracting data from a column if I get an error, I pull the data from the other column. However, I need to drag this formula down those references have no values. So I get an error. I tried doing an if statement " " and IFERROR but I couldn't get it to work. Here is my current formula:

=IFERROR(TRIM(LEFT(SUBSTITUTE(MID(A1,FIND("$",A1),3)," ",REPT(" ",100)),100)),TRIM(LEFT(SUBSTITUTE(MID(B1,FIND("$",B1),3)," ",REPT(" ",100)),100)))

Column A
[TABLE="width: 254"]
<colgroup><col></colgroup><tbody>[TR]
[TD] $78 [Hold][/TD]
[/TR]
[TR]
[TD] $78 [Hold][/TD]
[/TR]
[TR]
[TD] 11/28 ALLOCATIONS [Hold][/TD]
[/TR]
[TR]
[TD] 11/28 ALLOCATIONS [Hold][/TD]
[/TR]
[TR]
[TD] 11/28 ALLOCATIONS [Hold]

Column B
[TABLE="width: 372"]
<colgroup><col></colgroup><tbody>[TR]
[TD]TEXAS SPECIALTY 1419159 BUEHLC $88 11/7/2018[/TD]
[/TR]
[TR]
[TD]TEXAS SPECIALTY 1419294 BUEHLC $80 11/8/2018[/TD]
[/TR]
[TR]
[TD]SCHLUMBERGER 1419282 FRANK $34 11/8/2018[/TD]
[/TR]
[TR]
[TD]SCHLUMBERGER 1419285 FRANK $39 11/8/2018[/TD]
[/TR]
[TR]
[TD]SCHLUMBERGER 1419289 FRANK $67.5 11/8/2018

Desired outcome:
[TABLE="width: 300"]
<colgroup><col></colgroup><tbody>[TR]
[TD]$78
$78
$34
$39
$67.5

Regards,

Dastnai

[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]


[/TD]
[/TR]
</tbody>[/TABLE]


[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try:

=IFERROR(TRIM(LEFT(SUBSTITUTE(REPLACE(A1&B1,1,FIND("$",A1&B1)-1,"")," ",REPT(" ",99)),99)),"")
 
Upvote 0
I think its IsError. Something like...

=IF(ISERROR,"",(TRIM(LEFT(SUBSTITUTE(MID(A1,FIND("$",A1),3)," ",REPT(" ",100)),100)),TRIM(LEFT(SUBSTITUTE(MID(B1,FIND("$",B1),3)," ",REPT(" ",100)),100))))
I have no idea if your formula is correct. HTH. Dave
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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