need cell to read multiple cells and respond to only cells with data

jimjim001

New Member
Joined
Jan 8, 2022
Messages
13
Office Version
  1. 365
Platform
  1. MacOS
So i am trying to create a file for work, and they use google sheets. Usually the formulas are the same anyway.

But I am trying to make cell D2 read cells A2,B2 and C2 and respond if there is something in 1 of those 3 cells..

A2 is reflecting a payment on a monthly cycle from our customers
B2 is fortnightly
and C2 is weekly

There will only ever be data in one of the 3 cells, as customers sign up and choose their frequency of payment as monthly, fortnightly or weekly only.

I want D2 to read the 3 cells, and:
- If a figure is in A2 (monthly), then multiply by 12 and divide by 52 to reflect the rate as a weekly figure.
- If there is a figure in B2 (fortnightly) then simply divide that by 2 to reflect it as a weekly rate.
- If here is a figure in cell C2 (weekly rate) simply repeat that rate in D2.
- If there is nothing in any of the cells, then just be blank.

Image attached for reference.

TIA!
 

Attachments

  • Screen Shot 2022-01-10 at 1.11.36 pm.png
    Screen Shot 2022-01-10 at 1.11.36 pm.png
    26.1 KB · Views: 11

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Try:
Code:
=IFERROR(A2*CHOOSE(MATCH(TRUE,INDEX(A2:C2<>"",),0),12/52,0.5,1),"")
 
Upvote 0
try again:
Code:
=IFERROR(MAX(A2:C2)*CHOOSE(MATCH(TRUE,INDEX(A2:C2<>"",),0),12/52,0.5,1),"")
 
Upvote 0

Forum statistics

Threads
1,214,579
Messages
6,120,365
Members
448,956
Latest member
Adamsxl

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