GPA's and Blanks

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,180
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Currently I am using the formula below. I works great unless I have blank cells. It gives me the #N/A error. I tried to figure it out but could not. The formula in Column J is the result of the formula below. I need the results in column K. So IF Isnumber(F2) or Isnumber(G2) then give me result else leave blank (IF F2 & G2 are blank).Can someone please help me. Thanks in advance Stephen!



{=AVERAGE(CHOOSE(MATCH(F2:G2,{"G","S","N","U"},0),4,3,2,0))}
Book2
ABCDEFGHIJK
11st MP2nd MP3rd MP4th MPFormula ResultsWhat I would Like
2NU11
3UN11
4GG44
5UU00
6GG44
7SN2.52.5
8SN2.52.5
9SG3.53.5
10G#N/A4
11U#N/A0
12GG44
13SS33
14GG44
15SU1.51.5
16SS33
17S#N/A3
18GS3.53.5
19NN22
Sheet1
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about this?
Excel Workbook
ABCDEFGHIJKL
11st MP2nd MP3rd MP4th MPFormula ResultsWhat I would Like
2NU111
3UN111
4GG444
5UU000
6GG444
7SN2.52.52.5
8SN2.52.52.5
9SG3.53.53.5
10G#N/A44
11U#N/A00
12GG444
13SS333
14GG444
15SU1.51.51.5
16SS333
17S#N/A33
18GS3.53.53.5
19NN222
Sheet2
#VALUE!

Hope that helps.
 
Upvote 0
And I assume you maybe want to include F:I?

Excel Workbook
ABCDEFGHIJKL
11st MP2nd MP3rd MP4th MPFormula ResultsWhat I would Like
2NU111
3UN111
4GG444
5UU000
6GG444
7SN2.52.52.5
8SN2.52.52.5
9SG3.53.53.5
10G#N/A44
11U#N/A00
12GG444
13SS333
14GG444
15SU1.51.51.5
16SS333
17S#N/A33
18GS3.53.53.5
19NN222
Sheet2
#VALUE!
Entered with Ctrl+Shift+Enter

Yopu can change it to put a false part in the if statement and have it return somthing and then use that in teh match part to return the right value from choose, I just chose a blank because average will ifnore blanks and text.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top