Formula Errors

Use a Simple Excel Formula to Calculate Column G from Columns C and F

Kushani NimanthikaKushani Nimanthika Dec 2, 2026 869 views

Question details

Calculate a value in column G based on whether column C contains 10 or 20, using the corresponding value in column F.

Use a Simple Excel Formula to Calculate Column G from Columns C and 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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

Select G1, type =C1/10*F1, and press Enter.

2
Copy it down

Drag the fill handle at the lower-right corner of G1 down column G to apply the formula to the remaining rows.

Use a multiplication formula when column C contains only 10 or 20
Check for other values: This formula also calculates results for values other than 10 or 20. Use the IF formula below if those values need to be handled explicitly.
Calculate with WPS Spreadsheet

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. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Select the result cell: Click G1, or the first data cell in column G if your worksheet has a header row.
  3. 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. 4. Fill down and save: Drag the cell's fill handle down column G, then select Save to save the workbook.
Calculate results from columns C and F without IFS or SUMPRODUCTOpen and edit Microsoft Excel XLSX workbooksFill formulas down multiple rows with the fill handleUse familiar spreadsheet tools for free
microsoft office alternative - wps office

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.