Jump to content

(OT) Semi-Advanced Excel Question


stevestojan

Recommended Posts

use the conditional IF statement.

 

so if A1=50 and B1=100, then set C1=A1/B1 and D1=B1/A1

 

now set E1 = IF(C1>D1, C1 & ":1", "1:" & D1)

 

This way it will check to see which is greater, and use either XXX:1 or 1:XXX.

248405[/snapback]

 

See, this would work, but it's adding a new cell (D1).

 

I would much rather not do that.

Link to comment
Share on other sites

See, this would work, but it's adding a new cell (D1).

 

I would much rather not do that.

248424[/snapback]

 

Okay, smarty pants.

 

Set C1 to equal:

 

C1 = IF(A1>B1,LEFT(A1/B1,4)&":1","1:"&LEFT(B1/A1,4))

 

 

This should do it for you.

Link to comment
Share on other sites

Okay, smarty pants.

 

Set C1 to equal:

 

C1 = IF(A1>B1,LEFT(A1/B1,4)&":1","1:"&LEFT(B1/A1,4))

This should do it for you.

248429[/snapback]

 

 

Thank you everyone. And to Rubes, you are the MAN... perfect, exactly what I was looking for

 

Thanks for your help...

Link to comment
Share on other sites

Thank you everyone. And to Rubes, you are the MAN... perfect, exactly what I was looking for

 

Thanks for your help...

248447[/snapback]

 

More like the GEEK, but I'll take it.

Link to comment
Share on other sites

×
×
  • Create New...