Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2016, 08:10 PM
ExcelPatient ExcelPatient is offline If (cell) is (range of cells), then (cell) should be (range of cells) Mac OS X If (cell) is (range of cells), then (cell) should be (range of cells) Office 2008 for Mac
Novice
If (cell) is (range of cells), then (cell) should be (range of cells)
 
Join Date: Nov 2016
Posts: 3
ExcelPatient is on a distinguished road
Default If (cell) is (range of cells), then (cell) should be (range of cells)

Hi.



I am in need of a formula that converts a value in a specific cell to a value that lies within a range of cells automatically.

For example, if (P5) is "3.3" (the average of P2-P4), then (P6) should be (C25) (sorry you can't see this...screenshot cut off after C20)

The added complexity is that I will be regularly modifying the values in P2-P4, so the formula in P6 needs to update automatically.

So, if I change values in P2-P4, and say P5 now reads "4.8", then P6 would need to automatically be "96" in (C11).

See picture, below.

THANKS.


Screen Shot 2016-11-06 at 8.46.59 PM.png
Reply With Quote
  #2  
Old 11-06-2016, 10:30 PM
xor xor is offline If (cell) is (range of cells), then (cell) should be (range of cells) Windows 10 If (cell) is (range of cells), then (cell) should be (range of cells) Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Vlookup($p$5,$a$9:$b$59,2,0)
Reply With Quote
  #3  
Old 11-07-2016, 07:12 PM
ExcelPatient ExcelPatient is offline If (cell) is (range of cells), then (cell) should be (range of cells) Mac OS X If (cell) is (range of cells), then (cell) should be (range of cells) Office 2008 for Mac
Novice
If (cell) is (range of cells), then (cell) should be (range of cells)
 
Join Date: Nov 2016
Posts: 3
ExcelPatient is on a distinguished road
Default New wrinkle

Awesome. Very helpful.

Now, a new issue.

(Q5) is reading an error because (Q4) is a formula that calculates the average of (Q1-Q3) and its result contains a number to the millionth, which the VLookup in (Q5) cannot find. Obviously, I cannot include all possible divisions between 1 and 5 inside (A8:B21).

(Q4) formula reads: =IF(COUNT(Q1:Q3)>0,AVERAGE(Q1:Q3),"")

See picture, below.

Screen Shot 2016-11-07 at 8.01.33 PM.png
Reply With Quote
  #4  
Old 11-07-2016, 11:12 PM
xor xor is offline If (cell) is (range of cells), then (cell) should be (range of cells) Windows 10 If (cell) is (range of cells), then (cell) should be (range of cells) Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Take a look at the attached.
Attached Files
File Type: xlsx ExcelPatient.xlsx (84.8 KB, 11 views)
Reply With Quote
  #5  
Old 11-08-2016, 06:44 AM
ExcelPatient ExcelPatient is offline If (cell) is (range of cells), then (cell) should be (range of cells) Mac OS X If (cell) is (range of cells), then (cell) should be (range of cells) Office 2008 for Mac
Novice
If (cell) is (range of cells), then (cell) should be (range of cells)
 
Join Date: Nov 2016
Posts: 3
ExcelPatient is on a distinguished road
Default Almost there!

Hi. That totally worked!

Last question: when values to be averaged are not entered and cells are consequently left blank, there are divide by zero error messages showing. Only when I enter at least one value does the result display and these error messages disappear.

In the following formulas, is there a way to show a blank cell, not a divide by zero error, when no values to be averaged are entered?

=ROUND(AVERAGE(Q5:Q7),1)
=Vlookup(Q8, $B$38:$C$78,2,)

Screen Shot 2016-11-08 at 7.38.24 AM.png
Reply With Quote
  #6  
Old 11-08-2016, 07:21 AM
xor xor is offline If (cell) is (range of cells), then (cell) should be (range of cells) Windows 10 If (cell) is (range of cells), then (cell) should be (range of cells) Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

=iferror(round(average(q5:q7),1),"")

=iferror(vlookup(q8,$b$38:$c$78,2,0),"")
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
If (cell) is (range of cells), then (cell) should be (range of cells) If value of cell A Matches a value in a Range of cells (column) then add value of cell A to cell C rick10r Excel 1 07-05-2016 12:07 PM
If (cell) is (range of cells), then (cell) should be (range of cells) Search Range Within Cell or Cells COEngineer Excel 1 06-01-2016 11:50 AM
Copying text range of cells to different cells adds an extra line jpb103 Word VBA 2 07-23-2014 12:22 PM
Count range cells eliminating merge cells danbenedek Excel 0 06-15-2010 12:40 AM
If (cell) is (range of cells), then (cell) should be (range of cells) Moving formula range multiple cells when moving sum over one cell FraserKitchell Excel 4 02-26-2010 10:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft