How to calculate data which is from web query

YavuzAkbay

New Member
Joined
Feb 2, 2022
Messages
7
Office Version
  1. 2021
Platform
  1. MacOS
I got stock price data (Yahoo Finance) from web query. When I click refresh it changes theres no problem about that but problem is I cant include that data in my calculations. For example lets say I pulled Tesla price and I want to multiply that price with 5, when I try that it says result is 5. I tried =B2*5 and =Product neither them work. Can't I include them in my calculations?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Do you have a screenshot or sample file you can provide?
As you can see "Total" is Amount * Price so when I put price data myself it multiplies but when I get that price data which is as you can see in the SOL line and when I try to multiply that I get that result.
 

Attachments

  • 111.png
    111.png
    70.9 KB · Views: 21
Upvote 0
I think your SOL Price might actually be a text formatted population. So in your Total calculation, you may need to try something like =PRODUCT(G5,VALUE(H5))
 
Upvote 0
I think your SOL Price might actually be a text formatted population. So in your Total calculation, you may need to try something like =PRODUCT(G5,VALUE(H5))
I tried to turn data to value by making =VALUE(B1) first but it still says #VALUE!
 
Upvote 0
It looks like your version of Excel uses the comma as the decimal separator. If so, try 109,01 instead . . .
 
Upvote 0
Try changing the cell format first to either the General format, or Number format, or Currency format of your choice, and then re-enter the value 109,01. Does this help?
 
Last edited:
Upvote 0
All things point to the value being recognized as a text value, instead of a numerical value . . .

1) The value in H5 is left-align instead of right-aligned within the cell.
2) The formula in I5 ignores the value in H5 and returns 1,74, instead of 189,68 (rounded to two decimal places).
3) The other formula in I4 returns the correct result.

So I'm surprised that my last suggestion did not work. Just to be sure that you're doing things right, try the following . . .

1) On the worksheet, select cell H5, which contains the value $109,01.
2) On the Ribbon, under the Home tab, in the Number group, select the Currency format.
3) Re-enter 109,01 in cell H5, and press ENTER.

Does this help?
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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