Calculate Information based on time

Nancy Fite

New Member
Joined
Sep 30, 2006
Messages
5
Am having trouble writing correct statement and need some clear thinkers.

Need to calculate qty * cost and enter into a certain cell based on the time the information was entered. If the time entered in I2 was between K2 and L2 then the qty*cost would be entered into E2. Likewise, if I2 was between K3 and L3, then the qty*cost would be entered into F2 and so on for 4 more columns. I am using the 24 hour clock.

Any thoughts? I've worked on this for 3 days but haven't succeeded.
 
What a man! Thanks so much for your help. I've learned so much in the past few days, my head's swimming. I'll take what you've sent and tweak the spreadsheet tomorrow.
 
Upvote 0

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.
Barry -

My great apologies for ignoring your contribution to this discussion.

I was not familiar with the IF(AND syntax, and I though my way was OK.

After playing with it a while, it seems much clearer. I have always suffered with conditionals involving multiple comparisons.

I've discovered that OR works as well, and even allows more than two inequalities.

For example, IF(OR(A2>B2,B2>C2,C2>D2),1,0)

In many cases, OR would allow the user to avoid <= comparisons.
And that's good.

Thanks for the excellent lesson, although it took me way too long to learn.

Larry
 
Upvote 0

Forum statistics

Threads
1,224,798
Messages
6,181,038
Members
453,014
Latest member
Chris258

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