If the Value in S is <> to E round off to its Value

  • Thread starter Thread starter harishnehru
  • Start date Start date
H

harishnehru

Hello need help, please

I have a sheet which Cloumn S has formula (=J6+N6+R6).

In Column E I have shown Service Type A, B, or C. The value of A=28.00,
B=28.00, C=15.00. But the values is not shown in the sheet, we just show
Service type (typeA, typeB, or typeC).

Now I want to show in Column S if the value is less than its type, the
value should be rounded off to its type.

For e.g. Row6 ColumnE=TypeA, columnJ6=5, columnN6=7, columnR6=4, the
value in columnS =16. But I want to show columnS=28, because its typeA
and less than its type value. If the value is more than typeA in column
S then sum =J6+N6+R6.

Also need help if you reply with any programming to run in Excel for
this question, how to insert the program in Excel and and make it
working.

I hope I have made it clear.

Thank you very much in advance..
 
=IF(SUM(R6,N6,J6)<28,28,SUM(R6,N6,J6))
place this formula in cell S6
 
Can be done with the worksheet function IF, typed into first cell of column S
and then copied down (I'm assuming you're starting in the second row):

=IF(E2="TypeA",IF((J2+N2+R2)<=28,28,(J2+N2+R2)),IF(E2="TypeB",IF((J2+N2+R2)<=28,28,(J2+N2+R2)),IF(E2="TypeC",IF((J2+N2+R2)<=15,15,(J2+N2+R2)))))

Gets a bit complicated when so many IFs are nested but that should do the
trick!
 
Thanks for both davesexcel and Martin.

Martin forumla was more what I needed. It worked fine.
 
Hello,

I got replies for my query.

=IF(C3="Type A",IF((H3+L3+P3)<=28,28,(H3+L3+P3)),IF(C3="Type
B",IF((H3+L3+P3)<=28,28,(H3+L3+P3)),IF(C3="Type
C",IF((H3+L3+P3)<=15,15,(H3+L3+P3)))))


This formula work fine, but in the column S by default it shows 28
always. Now we want to show 28 only if G or/and K or/and O columns have
some values entered and the total in column S is less than 28.

When we open new book we don’t want 28 in column S to show always. Only
when we enter some values in G or/and K or/and O columns. ID these
columns are blank the column S should show 0 or blank.


Many thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top