Use a Simple Excel Formula to Calculate Column G from Columns C and F
Question details
Calculate a value in column G based on whether column C contains 10 or 20, using the corresponding value in column F.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants a simple formula that returns the value in column F when column C is 10 and twice that value when column C is 20.
- Observed behavior
- Column G should show the calculated result for each row without requiring IFS or SUMPRODUCT.
Check whether column C contains only the numeric values 10 and 20, and identify the first row of data. The examples below use row 1; adjust the row references if your data starts elsewhere.
Use a multiplication formula when column C contains only 10 or 20
Use this short formula when every relevant value in column C is either 10 or 20.
Select G1, type =C1/10*F1, and press Enter.
Drag the fill handle at the lower-right corner of G1 down column G to apply the formula to the remaining rows.

Use nested IF to handle other values in column C
Use this formula when column C may contain values other than 10 or 20 and those rows should display a blank result.
Calculate Column G with a Simple Formula in WPS Spreadsheet
Use WPS Spreadsheet to enter the same multiplication or IF formula and fill it down your worksheet.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Select the result cell: Click G1, or the first data cell in column G if your worksheet has a header row.
- 3. Enter a formula: Type =C1/10*F1 if column C contains only 10 or 20. Otherwise, type =IF(C1=10,F1,IF(C1=20,F1*2,"")); adjust the row references as needed, then press Enter.
- 4. Fill down and save: Drag the cell's fill handle down column G, then select Save to save the workbook.

Frequently Asked Questions
Why does =C1/10*F1 work for both 10 and 20?
When C1 is 10, C1/10 equals 1, so the result is F1. When C1 is 20, it equals 2, so the result is twice F1.
What happens if column C contains a value other than 10 or 20?
The multiplication formula still calculates a result. To display a blank for other values, enter =IF(C1=10,F1,IF(C1=20,F1*2,"")) in G1 instead.
How do I apply the formula if my data starts in row 2?
Enter the formula in G2 and change the references to C2 and F2, for example =C2/10*F2. Then drag the fill handle down column G.
Can I use these formulas in WPS Spreadsheet?
Yes. Open the workbook in WPS Spreadsheet, enter either formula in the first result cell in column G, and drag the fill handle down.




