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
$78 [Hold]
$78 [Hold]
11/28 ALLOCATIONS [Hold]
11/28 ALLOCATIONS [Hold]
11/28 ALLOCATIONS [Hold]

Column B
TEXAS SPECIALTY 1419159 BUEHLC $88 11/7/2018
TEXAS SPECIALTY 1419294 BUEHLC $80 11/8/2018
SCHLUMBERGER 1419282 FRANK $34 11/8/2018
SCHLUMBERGER 1419285 FRANK $39 11/8/2018
SCHLUMBERGER 1419289 FRANK $67.5 11/8/2018

Desired outcome:
$78
$78
$34
$39
$67.5

Regards,

Dastnai


<colgroup><col></colgroup><tbody>
</tbody>



<colgroup><col></colgroup><tbody>
</tbody>



<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,216,073
Messages
6,128,634
Members
449,460
Latest member
jgharbawi

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