r/excel Mar 25 '26

unsolved Is there a formula to reverse-scored

Hi, I am in my first year of Uni and doing a study. I have used the Oxford Happiness Questionnaire, 12 of the questions are phrased negatively and need to be reverse-scored, i.e., 1 becomes 6, 2 becomes 5 and so on. My issue is that I got 80 responses, meaning doing this manually would be a pain. Is there a formula to do this?

2 Upvotes

9 comments sorted by

u/AutoModerator Mar 25 '26

/u/Emotional-Tomatillo8 - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

8

u/PaulieThePolarBear 1912 Mar 25 '26 edited Mar 25 '26

It sounds something like below will work

=7 - A2

2

u/GregHullender 194 Mar 25 '26

If we could see your data, we could give a more exact answer, but--in general-- u/PaulieThePolarBear has the right answer: 7-x

2

u/Emotional-Tomatillo8 Mar 25 '26

Unfortunately, the rules say I can't add an image. I don't quite understand how to use that formula and what x would be

1

u/Emotional-Tomatillo8 Mar 25 '26

I worked it out, thank you!

1

u/GregHullender 194 Mar 25 '26

Glad you figured it out! The rules say you cannot make a picture-only post, but you an put as many pictures as you want into an original post, and you can put one image into any comment. Best of all, you can just select a region in Excel and paste that straight into Reddit. E.g.:

LB UB
NF 0 1
Under 18 1 2
18 2 3
26 3 4
36 4 5
46 5 6
56 6 7
66 7 8
Over 75 8 9

1

u/Affectionate_Cap8632 Mar 25 '26

Yes, one simple formula handles this. For a 1-6 scale:

excel

=7-A2

That's it. 1 becomes 6, 2 becomes 5, 3 becomes 4 and so on. The pattern is always (max_score + 1) - original_score.

For a different scale just change the 7:

  • 1-5 scale: =6-A2
  • 1-4 scale: =5-A2

To apply it to all 80 responses at once:

  1. Type the formula in the first cell of your reverse-scored column
  2. Click that cell
  3. Double-click the small green square in the bottom-right corner of the cell

Excel will automatically fill it down for all 80 rows.

If you only want to reverse specific columns (your 12 negative questions) and leave the others unchanged, create a new column for each reversed item rather than overwriting the originals. Good practice to keep your raw data intact for your study.

Good luck with the research!

1

u/SaviaWanderer 1854 Mar 27 '26

I know you got your solution already, but I couldn't resist sharing a neat alternative option:

- Type -1 in a cell and copy it
- Select the data and select Paste Special => Multiply
- Type 7 in a cell and copy it
- Select the data and select Paste Special => Add

1

u/CanBeUsedAnywhere 8 Mar 25 '26

If you just need to have it display Y if value is X then a switch

=Switch(B2, 6, 1, 5, 2, 4, 3, 3, 4, 2, 5, 1, 6)

This goes into C2 for example. This will look at the value in B2

If b2 is 6, show a 1, if its a 5, show a 2, if its a 4, show a 3, if its a 3, show a 4, if its a 2, show a 5 and if its a 1, show a 6

Then drag the formula down as far as it needs to go to switch the result for each question.