Excel help in making a document to calculate Cp of Air

  • Thread starter StephenQueen
  • Start date
  • Tags
    Air Excel
In summary, Stephen attempted to solve a problem where an exact value was input on a table for the air's specific heat capacity, however this caused an error when using an If statement. After some experimentation, he found that he did not need the if statement and changed the upper condition to always add 1 to the value of temperature.
  • #1
StephenQueen
2
0

Homework Statement



using the table of values supplied (a pdf document), construct an excel spreadsheet wherein a value can be input from 200-2250 and output will be air's specific heat capacity at that temperature.

Homework Equations


Cp= H2-H1/T2-T1


The Attempt at a Solution



I have completed most things, I am just having issue where an exact value is entered on the temperature table, ie 200 has a value for H, and as such my formula input in both cells which is designed to essentially round down or up from the value selects the same values for Temperature and thus divides by zero.

I am currently attempting to input an If statement into the cell containing the upper (T2) value, but containing too many arguments.

This is the statement i have been using to calculate temperature for the upper:

=SMALL($D$18:$D$138,COUNTIF($D$18:$D$138,"<"&M21)+1)

inputting an if function I thought of but it ended up containing too many arguments (essentially if A1=A2 then above formula acts as if M21 was added with +1 to its cell).

So is there a way to simplify?

Or should i make cell 2 conditional upon cell 1 and try and make it select the next sequential cell automatically?

How do I do that?

Any and all help is appreciated.
 
Physics news on Phys.org
  • #2
Hey StephenQueen and welcome to the forums.

The simplest If statement is just =IF(statement,true-value,false-value). You can nest the if statements within each other to do more complex statements.

For example =IF(A1>B1,1,0) would return 1 if A1>B1 and 0 otherwise.

Can you outline in the simplest manner what your conditions are? If you can provide really simple pseudo code and all the checks you need to do, then we can give more specific advice.
 
  • #3
My conditions are to check for the closest upper value within an array of cells compared with the 'temperature' input, and correspond with the output being that closest temperature.

What I'm trying to do is have the cell check if its value is the same as that of another, and if so, to change its output to the next highest integer.

I think I may have solved my problem though- I don't think i may need the if operator now, just changing the upper check so that it always adds 1 to the value of temperature. Seeing as it will always tend towards that value anyway, it changes little.


I think i did it.
 

1. What is the Cp of Air?

The Cp of Air, also known as the specific heat capacity of air, is the amount of energy required to raise the temperature of a unit mass of air by one degree Celsius.

2. How is the Cp of Air calculated?

The Cp of Air can be calculated using the formula: Cp = (h2-h1)/(T2-T1), where h represents the enthalpy and T represents the temperature. Alternatively, it can also be found in tables or charts based on the temperature and pressure of the air.

3. What are the units for Cp of Air?

The units for Cp of Air are typically given in J/kg·K (Joules per kilogram per Kelvin) or Btu/lbm·°F (British thermal units per pound-mass per degree Fahrenheit).

4. Why is it important to know the Cp of Air?

The Cp of Air is important because it helps in understanding the behavior of air when heated or cooled, and it is necessary for calculations involving heat transfer, such as in HVAC systems or industrial processes.

5. Can Excel be used to calculate the Cp of Air?

Yes, Excel can be used to calculate the Cp of Air by inputting the necessary data and using the appropriate formulas or functions. However, it is important to ensure that the correct units are used and the calculations are accurate.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
14
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
Replies
2
Views
568
  • Engineering and Comp Sci Homework Help
Replies
1
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Electromagnetism
Replies
16
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
4K
Back
Top