How to Create a Fan Number in Excel

How-to basics · Updated November 23, 2026

Creating a “fan number” in Excel usually means generating a sequence of numbers that fan out from a central value—for example, 1, 2, 3, 4, 5, 4, 3, 2, 1 or -3, -2, -1, 0, 1, 2, 3. This is handy for symmetrical charts, scheduling, or creating test data. You don’t need any special add-ins; a simple formula or two will do it. Here’s how to create a fan number sequence in Microsoft Excel for Microsoft 365 on Windows.

What You’ll Need

  • Microsoft Excel (Microsoft 365, Excel 2021, or Excel 2019 will work; the steps are the same for most versions).
  • A blank worksheet.
  • Basic knowledge of entering formulas and using the fill handle.

Step-by-Step

  1. Decide your fan parameters. A fan number sequence goes from a start value up to a peak, then back down. For example, start at 1, peak at 5, then back to 1. Or start at -2, peak at 3, then back to -2. Write down your start, peak, and how many steps you want on each side.
  2. Set up your worksheet. In cell A1, type Step and in B1 type Value as headers. This is optional but helps keep things organized.
  3. Enter the step numbers. In column A, list the step numbers from 0 to your total steps. For a fan that goes up and down, the total steps is (peak – start) * 2. For example, if start=1 and peak=5, total steps = (5-1)*2 = 8. So in A2 enter 0, in A3 enter 1, and so on down to A10 (for step 8). Use the fill handle: enter 0 in A2, 1 in A3, select both, then drag the bottom-right corner down to A10.
  4. Create the fan formula. In cell B2, enter the following formula (assuming your start value is in cell D1 and peak value is in cell D2, but you can also hardcode numbers):
    =IF(A2<=(D2-D1), D1+A2, D2-(A2-(D2-D1)))
    This formula checks if the step number is less than or equal to the number of steps to reach the peak. If yes, it adds the step to the start. If no, it subtracts the excess from the peak. For a quick hardcoded example, with start=1 and peak=5, use:
    =IF(A2<=4, 1+A2, 5-(A2-4))
    Press Enter.
  5. Copy the formula down. Click on B2, then double-click the fill handle (the small square at the bottom-right of the cell) to fill the formula down to B10. You should now see the sequence: 1, 2, 3, 4, 5, 4, 3, 2, 1.
  6. Adjust for different ranges. If you want a fan that goes negative to positive, say start=-3, peak=3, then the steps to peak = 3 – (-3) = 6. Use the formula =IF(A2<=6, -3+A2, 3-(A2-6)) and fill down to step 12. The sequence will be -3, -2, -1, 0, 1, 2, 3, 2, 1, 0, -1, -2, -3.
  7. Use the sequence. Once you have your fan numbers, you can use them for charting (like a symmetrical bell curve), for creating test data, or for any other purpose. You can copy the values and paste them elsewhere as numbers.

Common Mistakes

  • Incorrect step count. The most common mistake is miscounting the total steps. Remember: total steps = (peak – start) * 2. If you don’t have enough rows, the sequence will be cut off.
  • Wrong cell references. If you use cell references for start and peak, make sure they are absolute (like $D$1) if you plan to fill the formula across, but since you’re filling down, relative references are fine. However, if you copy the formula to other columns, you might get errors.
  • Using the wrong comparison. The formula uses <= (less than or equal to). If you use < (less than), you’ll miss the peak value.
  • Forgetting to fill down enough rows. If you drag the fill handle only a few rows, you won’t see the full fan. Double-click the fill handle to auto-fill to the end of the adjacent column, but ensure column A has values down to the last step.

Tips

  • Use a dynamic formula. Instead of hardcoding start and peak, put them in separate cells (e.g., D1 and D2) and reference them. Then you can change the fan range without editing the formula.
  • Create a fan with decimal steps. If you want a smoother fan, use a step size of 0.5. For example, start=0, peak=2, step=0.5. The formula becomes =IF(A2<=4, 0+A2*0.5, 2-(A2-4)*0.5) where A2 contains the step index (0,1,2…).
  • Use SEQUENCE for a quick list. In Excel 365, you can generate the step numbers dynamically with =SEQUENCE((peak-start)*2+1,1,0,1) in a cell, but then you need to reference that spill range in your formula. For example, in A2 enter =SEQUENCE(9,1,0,1) for a 9-step fan (0 to 8). Then in B2 enter =IF(A2#<=4, 1+A2#, 5-(A2#-4)) and it will spill down. This is more advanced but very efficient.
  • Check your sequence visually. Select the values in column B and insert a line chart (Insert > Charts > Line) to see the fan shape. This helps verify the formula is correct.

Troubleshooting

  • Sequence doesn’t go back down. If your values keep increasing, your formula’s IF condition is probably wrong. Check that you used <= and that the step count in the condition matches your peak-start value.
  • #VALUE! error. This usually means you have text in a cell that should be a number. Check that your step numbers in column A are numbers, not text. Also ensure your start and peak cells contain numbers.
  • #NAME? error. This happens if you misspelled a function or used a function not available in your Excel version. The IF function is available in all versions, so this is unlikely. Check for typos.
  • Sequence is too short. You probably didn’t fill down enough rows. Extend the fill handle down to cover all steps. Remember total steps = (peak – start) * 2.
  • Sequence has a gap at the peak. If your peak appears twice (e.g., 1,2,3,4,5,5,4…), your step count is off by one. Adjust the total steps or the condition.

Frequently Asked Questions

Q: Can I create a fan number that goes up and down with different step sizes?
A: Yes. Instead of step index increasing by 1, you can multiply the step index by your desired step size. For example, to go from 0 to 10 in steps of 2, use =IF(A2<=5, 0+A2*2, 10-(A2-5)*2).

Q: How do I create a fan number that doesn’t start at 0?
A: Simply change the start value in the formula. For instance, to start at 10 and peak at 20, use =IF(A2<=10, 10+A2, 20-(A2-10)).

Q: Can I use this in Google Sheets?
A: Yes, the same formula works in Google Sheets. Just enter it in a cell and drag down. The IF function is identical.

Q: Is there a way to generate fan numbers without a formula?
A: You can manually type the sequence, but that’s tedious. Alternatively, you can use the Fill Series feature (Home > Fill > Series) to create an ascending sequence, then copy and paste it in reverse below. But the formula is more flexible.

Q: How do I make a fan number that goes up and down multiple times?
A: You can repeat the sequence by copying it down. Or, if you want a repeating pattern, you can use a formula with MOD. For example, to repeat a fan of 1,2,3,2,1, use =1+MOD(A2-1,4)-IF(MOD(A2-1,4)>2, MOD(A2-1,4)-2, 0) but that’s complex. Simpler: just copy your fan sequence multiple times.

Q: Can I create a fan number for use in a chart?
A: Absolutely. That’s a common use. Once you have the sequence, select both columns (step and value) and insert a line or scatter chart. The fan shape will appear as a triangle or trapezoid.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.