SOLVED

ISSUE WITH WHAT IF ANALYSIS

%3CLINGO-SUB%20id%3D%22lingo-sub-2567210%22%20slang%3D%22en-US%22%3EISSUE%20WITH%20WHAT%20IF%20ANALYSIS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2567210%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20a%20data%20table%20with%20two%20variables%2C%20but%20when%20I'm%20initiating%20the%20what-if%20analysis%2C%20the%20data%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222021-07-20.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297137i94B85989E89856DF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222021-07-20.png%22%20alt%3D%222021-07-20.png%22%20%2F%3E%3C%2FSPAN%3E%20are%20coming%20all%20wrong.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2567210%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2567465%22%20slang%3D%22en-US%22%3ERe%3A%20ISSUE%20WITH%20WHAT%20IF%20ANALYSIS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2567465%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1108265%22%20target%3D%22_blank%22%3E%40rahuldavidmondal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYour%20screenshot%20shows%20a%20one-dimensional%20data%20table.%20You%20should%20specify%20E5%20(the%20amount)%20as%20Column%20Input%20cell%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S0602.png%22%20style%3D%22width%3A%20453px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297151iF48BC315BA12DBDD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22S0602.png%22%20alt%3D%22S0602.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2568678%22%20slang%3D%22en-US%22%3ERe%3A%20ISSUE%20WITH%20WHAT%20IF%20ANALYSIS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2568678%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%2C%20but%20it's%20still%20showing%20the%20same%20results.%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222021-07-21%20(1).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297287i1D5765F3D3859F12%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222021-07-21%20(1).png%22%20alt%3D%222021-07-21%20(1).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2569097%22%20slang%3D%22en-US%22%3ERe%3A%20ISSUE%20WITH%20WHAT%20IF%20ANALYSIS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2569097%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1108265%22%20target%3D%22_blank%22%3E%40rahuldavidmondal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAre%20you%20sure%20that%20E6%20contains%20the%20formula%20%3DE4*E5%20and%20that%20F8%20contains%20the%20formula%20%3DE6%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am trying to create a data table with two variables, but when I'm initiating the what-if analysis, the data2021-07-20.png are coming all wrong. 

8 Replies

@rahuldavidmondal 

 

Your screenshot shows a one-dimensional data table. You should specify E5 (the amount) as Column Input cell:

 

S0602.png

@Hans Vogelaar 

I did, but it's still showing the same results. 2021-07-21 (1).png

@rahuldavidmondal 

Are you sure that E6 contains the formula =E4*E5 and that F8 contains the formula =E6 ?

How do you mean?

@rahuldavidmondal 

Select cell E6. What do you see in the formula bar?

Then select cell F8. What do you see in the formula bar?

 

If you wish, you can attach your sample workbook to a reply. That will enable us to investigate it directly.

@Hans Vogelaar 

When I am selecting the specified cells, it's showing the value and not any formulas. 

I am attaching the file, please check. 

Thank You.

 

best response confirmed by allyreckerman (Microsoft)
Solution

@rahuldavidmondal 

1) All your currency values are text values, not numbers. You should remove the Rs. from the cells, and set the number format to a currency format that uses Rs.

'.png

2) A data table will only work if you have formulas. Without formulas, Excel has no way of knowing what you want to calculate.

In E6, enter the formula =E4*E5. This causes Excel to calculate the total price based on the price per apple and the quantity.

In F8, enter the formula =E6. This makes the top right cell of the data table equal to the total price in E6.

 

See the attached version.

 

 

That's great! Thanks for helping me.