VLOOKUP formula to extract $ and , special characters

sneakyla

New Member
Joined
Aug 11, 2021
Messages
23
Office Version
  1. 2016
Platform
  1. Windows
Hello!

I'm currently using VLOOKUP twice to extract data from 2 different cells by adding & but doing this isn't extracting any $ or , characters.

One cell contains $price and the other cell contains a large number than should include a , if the number goes over 1,000.

For example.

A1 (cell with formula to extract data from B1 and C1)
5.00 | 4000

B1
$5.00

C1
4,000

Would anyone know how to fix this?

Thank you!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Use the TEXT function.

i.e. instead of A1=B1&"|"&C1 use A1 =TEXT(B1,"$#,##0.00")&"|"&TEXT(C1,"#,##0")
 
Upvote 0
Solution
Use the TEXT function.

i.e. instead of A1=B1&"|"&C1 use A1 =TEXT(B1,"$#,##0.00")&"|"&TEXT(C1,"#,##0")
Hello!

Thank you for the response!

I totally forgot to include that the reason why I used VLOOKUP is because I need it to look up a specific value and extract data from that row.

A column
Apple
Orange

B Column
$5.00
$10.00

C Column
4,000
5,000

D1
apple
5.00 | 4000 (formula finding value and returning data from apple (d1)

D2
orange
10.00 | 5,000 (formula finding value and returning data from orange (d2)

Thank you!
 
Upvote 0
Same idea, just substitute your VLOOKUP formulas for B1 and C1 in my previous post
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,697
Members
449,117
Latest member
Aaagu

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